Get all API keys for tenant
curl --request GET \
--url https://api.engagefabric.com/projects/api-keys/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.engagefabric.com/projects/api-keys/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engagefabric.com/projects/api-keys/all', 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://api.engagefabric.com/projects/api-keys/all",
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://api.engagefabric.com/projects/api-keys/all"
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://api.engagefabric.com/projects/api-keys/all")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/projects/api-keys/all")
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[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Mobile App Key",
"prefix": "pp_live_",
"scopes": [
"events:write",
"players:read",
"players:write"
],
"status": "ACTIVE",
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"rateLimit": 1000,
"expiresAt": "2026-12-31T23:59:59Z",
"lastUsedAt": "2025-01-15T10:30:00Z",
"metadata": {
"createdBy": "admin@example.com"
},
"deletedAt": null
}
]projects
Get all API keys for tenant
Returns all API keys across all projects for the authenticated user’s tenant
GET
/
projects
/
api-keys
/
all
Get all API keys for tenant
curl --request GET \
--url https://api.engagefabric.com/projects/api-keys/all \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.engagefabric.com/projects/api-keys/all"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engagefabric.com/projects/api-keys/all', 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://api.engagefabric.com/projects/api-keys/all",
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://api.engagefabric.com/projects/api-keys/all"
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://api.engagefabric.com/projects/api-keys/all")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engagefabric.com/projects/api-keys/all")
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[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"projectId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Production Mobile App Key",
"prefix": "pp_live_",
"scopes": [
"events:write",
"players:read",
"players:write"
],
"status": "ACTIVE",
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:30:00Z",
"rateLimit": 1000,
"expiresAt": "2026-12-31T23:59:59Z",
"lastUsedAt": "2025-01-15T10:30:00Z",
"metadata": {
"createdBy": "admin@example.com"
},
"deletedAt": null
}
]Authorizations
JWT token for admin console authentication
Query Parameters
Include revoked API keys
Example:
false
Response
200 - application/json
List of all API keys for tenant
Unique API key identifier
Example:
"123e4567-e89b-12d3-a456-426614174000"
Project ID this key belongs to
Example:
"123e4567-e89b-12d3-a456-426614174000"
API key name/description
Example:
"Production Mobile App Key"
API key prefix (for identification)
Example:
"pp_live_"
API key scopes/permissions
Example:
[
"events:write",
"players:read",
"players:write"
]
API key status
Available options:
ACTIVE, REVOKED, EXPIRED Example:
"ACTIVE"
Creation timestamp
Example:
"2025-01-15T10:30:00Z"
Last update timestamp
Example:
"2025-01-15T10:30:00Z"
Custom rate limit (requests per minute)
Example:
1000
API key expiration date
Example:
"2026-12-31T23:59:59Z"
Last time this key was used
Example:
"2025-01-15T10:30:00Z"
Additional metadata
Example:
{ "createdBy": "admin@example.com" }
Soft deletion timestamp
Example:
null
