Requests
The vendor's requests, filterable like the dashboard inbox; a platform key lists all requests.
Requires the requests:read scope.
apiKey requests:readAuthorizationBearer <token>An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....
Scope: requests:read
q?stringlength <= 255page?integer1 <= valueperPage?integer1 <= value <= 100status?"new""new"type?"info""info"brand?stringunread?booleanSuccess
application/json- response
data*array<>metadata*curl -X GET "https://example.com/api/v1/key/requests"{ "data": [ { "provider": { "id": "string", "name": "string", "slug": "string", "status": "pending", "logoUrl": "string" }, "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "createdAt": "string", "id": "string", "status": "quoted", "type": "price", "updatedAt": "string", "product": { "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "compareAtPrice": 0, "currency": "string", "hasBim": true, "id": "string", "inStock": true, "isNew": true, "name": "string", "price": 0, "priceOnRequest": true, "slug": "string", "type": "string", "coverUrl": "string", "hoverUrl": "string" }, "reference": "string", "isGuest": true, "messagesCount": 0, "subject": "string", "unread": true, "contact": { "name": "string", "country": "string", "email": "string", "profession": "string", "company": "string" }, "lastMessage": { "createdAt": "string", "excerpt": "string", "author": "provider" } } ], "metadata": { "total": 0, "perPage": 0, "currentPage": 0, "lastPage": 0, "firstPage": 0, "firstPageUrl": "string", "lastPageUrl": "string", "nextPageUrl": "string", "previousPageUrl": "string" }}One request with its whole thread. Does not mark it read for the team.
Requires the requests:read scope.
apiKey requests:readAuthorizationBearer <token>An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....
Scope: requests:read
id*stringSuccess
application/json- response
data*curl -X GET "https://example.com/api/v1/key/requests/string"{ "data": { "provider": { "id": "string", "name": "string", "slug": "string", "status": "pending", "logoUrl": "string" }, "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "createdAt": "string", "id": "string", "status": "quoted", "type": "price", "updatedAt": "string", "product": { "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "compareAtPrice": 0, "currency": "string", "hasBim": true, "id": "string", "inStock": true, "isNew": true, "name": "string", "price": 0, "priceOnRequest": true, "slug": "string", "type": "string", "coverUrl": "string", "hoverUrl": "string" }, "messages": [ { "createdAt": "string", "id": "string", "body": "string", "attachments": [ { "name": "string", "url": "string", "size": 0 } ], "author": "provider", "authorName": "string" } ], "reference": "string", "isGuest": true, "messagesCount": 0, "subject": "string", "unread": true, "contact": { "name": "string", "country": "string", "email": "string", "profession": "string", "company": "string" }, "lastMessage": { "createdAt": "string", "excerpt": "string", "author": "provider" } }}Changes the request status (open, quoted, closed).
Requires the requests:write scope.
apiKey requests:writeAuthorizationBearer <token>An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....
Scope: requests:write
id*stringapplication/json- body
status*"new""new"Success
application/json- response
data*curl -X PATCH "https://example.com/api/v1/key/requests/string" \ -H "Content-Type: application/json" \ -d '{ "status": "new" }'{ "data": { "provider": { "id": "string", "name": "string", "slug": "string", "status": "pending", "logoUrl": "string" }, "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "createdAt": "string", "id": "string", "status": "quoted", "type": "price", "updatedAt": "string", "product": { "brand": { "id": "string", "name": "string", "slug": "string", "logoUrl": "string" }, "compareAtPrice": 0, "currency": "string", "hasBim": true, "id": "string", "inStock": true, "isNew": true, "name": "string", "price": 0, "priceOnRequest": true, "slug": "string", "type": "string", "coverUrl": "string", "hoverUrl": "string" }, "messages": [ { "createdAt": "string", "id": "string", "body": "string", "attachments": [ { "name": "string", "url": "string", "size": 0 } ], "author": "provider", "authorName": "string" } ], "reference": "string", "isGuest": true, "messagesCount": 0, "subject": "string", "unread": true, "contact": { "name": "string", "country": "string", "email": "string", "profession": "string", "company": "string" }, "lastMessage": { "createdAt": "string", "excerpt": "string", "author": "provider" } }}Replies to the buyer, authored as the key's creator.
Requires the requests:write scope.
apiKey requests:writeAuthorizationBearer <token>An API key created in the vendor workspace. Send it as Authorization: Bearer afk_....
Scope: requests:write
id*stringapplication/json- body
body*string1 <= length <= 5000attachments?array<>length <= 10Success
application/json- response
data*curl -X POST "https://example.com/api/v1/key/requests/string/messages" \ -H "Content-Type: application/json" \ -d '{ "body": "string" }'{ "data": { "createdAt": "string", "id": "string", "body": "string", "attachments": [ { "name": "string", "url": "string", "size": 0 } ], "author": "provider", "authorName": "string" }}