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-09T18:26:56.869Z",
      "id": "106cdf3c-f924-4064-96f8-4738eb24551b",
      "is_valid": true,
      "label": "rjqWONV6IiwT3GlaG",
      "org_id": "b2c62da6-f3b0-4c0a-b13d-ec7d49939f28",
      "token": "zbK1",
      "updated_at": "2025-01-09T18:26:56.869Z"
    }
  ],
  "next_page": "x09ihigp"
}