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-06T17:03:29.388Z",
      "id": "21909e4e-5d59-4554-aff7-02737039c622",
      "is_valid": true,
      "label": "XJWtVi3NzJ",
      "org_id": "387fe576-a67f-485e-9c5f-268aef196c2f",
      "token": "aMkO6HY8R",
      "updated_at": "2024-12-06T17:03:29.388Z"
    }
  ],
  "next_page": "j"
}