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-09-20T22:41:44.481Z",
      "id": "bd9bfde7-a934-4215-b198-41f183cac400",
      "is_valid": false,
      "label": "8aoCoiP3L229",
      "org_id": "716a5763-d6b9-48f2-82f5-6a77e665c9e5",
      "token": "ioMaWdUcyamdXwpkKhXzB",
      "updated_at": "2024-09-20T22:41:44.481Z"
    }
  ],
  "next_page": "MSk9qxksgvXNOIOs72ywY8DRmPus"
}