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-04-25T16:39:57.716Z",
      "id": "2b1b6563-7278-456b-b011-10176fd4af9a",
      "is_valid": true,
      "label": "zwo3qKkHJ8nMgXRpYApg5C",
      "org_id": "69f10694-d50a-4f24-81eb-22101a6e89df",
      "token": "QBp24YJbnegvx2V",
      "updated_at": "2025-04-25T16:39:57.716Z"
    }
  ],
  "next_page": "3Hc5eMih85ui4hf3xxJTPQY"
}