Puesto Docs
API ReferenceLocationsList countries GET

List countries

GET
/api/v1/locations/countries

List every country available as a country filter value. Each code is the exact two-letter value the jobs country filter accepts.

Authorization

bearerAuth
AuthorizationBearer <token>

Provide your secret API key (prefixed sk_) as a bearer token: Authorization: Bearer sk_....

In: header

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/locations/countries"
{  "data": [    {      "code": "string",      "name": "string",      "slug": "string"    }  ]}
{  "type": "string",  "title": "string",  "status": 0,  "detail": "string",  "errors": [    {      "field": "string",      "message": "string"    }  ]}
{  "type": "string",  "title": "string",  "status": 0,  "detail": "string",  "errors": [    {      "field": "string",      "message": "string"    }  ]}