Skip to main content
GET
/
v1
/
api-keys
List API tokens
curl --request GET \
  --url https://{instance}.omniapp.co/api/v1/api-keys \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://{instance}.omniapp.co/api/v1/api-keys"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://{instance}.omniapp.co/api/v1/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://{instance}.omniapp.co/api/v1/api-keys",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://{instance}.omniapp.co/api/v1/api-keys"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://{instance}.omniapp.co/api/v1/api-keys")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://{instance}.omniapp.co/api/v1/api-keys")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "pageInfo": {
    "hasNextPage": false,
    "nextCursor": null,
    "pageSize": 50,
    "totalRecords": 2
  },
  "records": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "CI deployment key",
      "type": "organization",
      "enabled": true,
      "createdAt": "2026-01-15T10:00:00.000Z",
      "membershipId": null
    },
    {
      "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "name": "Personal token",
      "type": "personal",
      "enabled": true,
      "createdAt": "2026-02-10T14:30:00.000Z",
      "membershipId": "c3d4e5f6-a7b8-9012-cdef-123456789012"
    }
  ]
}
{
"detail": "Bad Request: type: Invalid option: expected one of \"organization\"|\"personal\"|\"mcp\"",
"status": 400
}
{
"detail": "Forbidden: Requires Organization Admin permissions",
"status": 403
}
{
"error": "<response_code>",
"message": "<error_reason>"
}
{
"error": "<response_code>",
"message": "<error_reason>"
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Query Parameters

type
enum<string>

Filter by token type. Omit to return all types.

  • organization - Organization-level API key. Not tied to a specific user.
  • personal - Personal access token. Acts as a specific user.
  • mcp - MCP OAuth grant issued during the OAuth authorization flow
Available options:
organization,
personal,
mcp
cursor
string<uuid>

Cursor for pagination.

pageSize
integer
default:20

Number of items to return per page.

Required range: 1 <= x <= 100
sortField
enum<string>
default:createdAt

Field to sort by.

Available options:
createdAt,
name
sortDirection
enum<string>
default:desc

Sort direction.

Available options:
asc,
desc

Response

API tokens retrieved successfully.

pageInfo
object

Pagination information for paginated responses.

records
object[]