Get all ambassadors (widget)

GET /widget/ambassadors

Headers

Query parameters

  • page integer

    page number

  • per_page integer

    number of items per page

  • filter by is_absent

  • filter by unavailable

  • sort string

    Sort by a specific field( for example: sort=distance&latitude=48.8566&longitude=2.3522)

    Values are distance or last_action_date.

  • latitude number

    latitude: required to sort by distance

  • longitude: required to sort by distance

Responses

GET /widget/ambassadors
curl \
 --request GET 'https://domain.tld/api/v2/widget/ambassadors' \
 --header "X-Popsell-Domain: example.com"
Response examples (200)
{
  "current_page": 42,
  "data": [
    {}
  ],
  "first_page_url": "string",
  "from": 42,
  "last_page": 42,
  "last_page_url": "string",
  "links": [
    {
      "url": "string",
      "label": "string",
      "active": true
    }
  ],
  "next_page_url": "string",
  "path": "string",
  "per_page": 42,
  "prev_page_url": "string",
  "to": 42,
  "total": 42
}
Response examples (401)
{
  "message": "Unauthorized."
}