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": "2024-12-19T17:49:54.003Z",
      "id": "19d0b8f7-77e5-45f1-889a-0799d97bec9b",
      "is_valid": false,
      "label": "AilZugn9B4wwXs8",
      "org_id": "8a684160-59e5-416b-b474-204593dcea99",
      "token": "pXsKPSgGtetDVjzQUAlsobf50BrIup",
      "updated_at": "2024-12-19T17:49:54.003Z"
    }
  ],
  "next_page": "vQHm37DysbP0KgSD32ENCK8TXG2S"
}