nweese | Posts: 10

GET route by package status?

0 votes
What route do I use to retrieve packages only with the status of 'DRAFT'?

Duo_Liang | Posts: 3776

Reply to: GET route by package status?

0 votes
Hi nweese, Below is the API you can use to retrieve packages with a status of "DRAFT". Note, "from" and "to" parameters is needed otherwise response will only return one package. And you can refer to this document page for all query parameters.
HTTP Request
GET /api/packages?from=0&to=9&status=DRAFT

HTTP Headers
Accept: application/json
Content-Type: application/json
Authorization: Basic api_key

Response Payload
{
    "count": 1808,
    "results":[......]
}
Hope this could help! Duo

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off