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-05-08T22:14:23.533Z",
      "id": "92254351-71e6-4897-95ba-b52ffdabea89",
      "is_valid": true,
      "label": "GNLK",
      "org_id": "0f3c48cf-65ba-4e49-bd64-362f10d4cc5b",
      "token": "3257344a-34f2-4c31-a146-34bf0ed1019f",
      "updated_at": "2024-05-08T22:14:23.533Z"
    }
  ],
  "next_page": "YOEYt1"
}