dlvr-id and dlvr-token.
Token by querying /validate/ passing dlvr-id and dlvr-token in as headers.
curl --location --request GET 'https://api.dlvr.photos/validate/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"message": "authenticated"
}
]
Status Codes
Clients a user can deliver photos to, in the Clients Area. Clients are usually named after the business or the people the photos are shot for. For example 'Joe's Windows LTD' or 'Kate + John'.
Clients
curl --location --request GET 'https://api.dlvr.photos/clients/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "1",
"client": "Joe's Windows LTD"
},
{
"id": "2",
"client": "Kate + John"
}
]
Client
id number in the request URL to get a single client's details.
curl --location --request GET 'https://api.dlvr.photos/clients/1234/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "1234",
"client": "Super Cool Hats"
}
]
Client
client string
curl --location --request POST 'https://api.dlvr.photos/clients/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5' \
--data-raw '{"client":"Oooober"}'
Response
[
{
"id": "1234",
"client": "Oooober"
}
]
Collections of photos. Collections can be either of type Portfolio which show on the user's website or type Client where the collection shows in the Clients Area for only the Client.
Collections
curl --location --request GET 'https://api.dlvr.photos/collections/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "1",
"name": "Portraits",
"url": "portraits",
"type": "portfolio",
"client": "0"
},
{
"id": "2",
"name": "Landscapes",
"url": "landscapes",
"type": "portfolio",
"client": "0"
},
{
"id": "3",
"name": "Kate + John",
"url": "kate-and-john",
"type": "client",
"client": "2"
}
]
Collection
id number in the request URL to get a single collection's details.
curl --location --request GET 'https://api.dlvr.photos/collections/3/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "3",
"name": "Kate + John",
"url": "kate-and-john",
"type": "client",
"client": "2"
}
]
Collection
name string
client integer
Portfolio set client to 0, for collection type of Client set the client to the relevant client ID.
curl --location --request POST 'https://api.dlvr.photos/collections/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5' \
--data-raw '{"name":"Oooober Head Shots", "client":"1234"}'
Response
[
{
"id": "1234",
"name": "Oooober Head Shots",
"url": "oooober-head-shots",
"type": "client",
"client": "1234"
}
]
Images organised into Collections.
Images in a Collection
id number in the request URL to get a collection's images.
curl --location --request GET 'https://api.dlvr.photos/collections/4/images/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "428",
"filename": "Oooober Head Shots - IMG_0480.jpg"
},
{
"id": "429",
"filename": "Oooober Head Shots - IMG_0481.jpg"
},
{
"id": "430",
"filename": "Oooober Head Shots - IMG_0482.jpg"
}
]
Image in a Collection
id number for both the collection and image in the request URL to get a specific image's data.
curl --location --request GET 'https://api.dlvr.photos/collections/4/images/430/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "430",
"filename": "Oooober Head Shots - IMG_0482.jpg"
}
]
Image to a Collection
id number in the request URL to set the destination collection.
upload file
form-data with the key name upload.
.jpg
.jpeg
.png
.gif
curl --location --request POST 'https://api.dlvr.photos/collections/4/images/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5' \
--form 'upload=@"path/filename.jpg"'
Response
[
{
"collection": "1",
"filename": "filename.jpg"
}
]
account.
Settings
curl --location --request GET 'https://api.dlvr.photos/settings/' \
--header 'dlvr-id: 12345' \
--header 'dlvr-token: 1111-2222-3333-4444-5'
Response
[
{
"id": "12345",
"domain": "johnsmithphotography.com",
"title": "John Smith Photography",
"package": "Pro Unlimited",
"usage": "220 GB / 1 TB"
}
]
Resources.