API → Service AccountsList service accounts for your org

Parameters

Name

Type

Req.

  • limit

    integer
    optional
  • page_token

    string
    optional
  • sort_by

    string
    required
    Possible values
    • created_at_ascending:  Sort in increasing order of "created_at".
    • created_at_descending:  Sort in decreasing order of "created_at".

Returns

get
/org/service-accounts
$ curl "https://api.zoo.dev/org/service-accounts" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "items": [
    {
      "created_at": "2025-01-07T20:44:34.250Z",
      "id": "b037ce76-1e6c-450d-8a86-c5dfa016ba1f",
      "is_valid": true,
      "label": "E04H",
      "org_id": "2b2e4628-40c9-4bdf-913a-920e06f01c6d",
      "token": "oiKvT28MBenQ62IBLFMaPTFe0iSD",
      "updated_at": "2025-01-07T20:44:34.250Z"
    }
  ],
  "next_page": "cTdcYsHqKpgexzOkuqZ1xPq9D"
}