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-04-18T22:05:18.935Z",
      "id": "1adb76f5-d310-47df-8e7c-cda048b765b0",
      "is_valid": true,
      "label": "0dzLEA8hA",
      "org_id": "f3f184d1-65a4-4449-8be5-1d8842aaa87d",
      "token": "bb33e9db-4726-4739-af20-a66fb862d87f",
      "updated_at": "2024-04-18T22:05:18.935Z"
    }
  ],
  "next_page": "sCy7zu"
}