List API keys
curl --request GET \
--url https://api.social-api.ai/v1/keys \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/keys"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"brand_ids": [
"<string>"
],
"created_at": "2026-02-28T12:00:00Z",
"id": "<string>",
"is_active": true,
"last_used_at": "2026-02-28T12:00:00Z",
"name": "<string>",
"preview": "sapi_key_a1b2c...",
"scopes": [
"posts:write",
"inbox:read"
]
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}API Keys
List API keys
Returns all API keys for the authenticated user, including each key’s scope and brand restrictions.
GET
/
keys
List API keys
curl --request GET \
--url https://api.social-api.ai/v1/keys \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/keys"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"count": 123,
"data": [
{
"brand_ids": [
"<string>"
],
"created_at": "2026-02-28T12:00:00Z",
"id": "<string>",
"is_active": true,
"last_used_at": "2026-02-28T12:00:00Z",
"name": "<string>",
"preview": "sapi_key_a1b2c...",
"scopes": [
"posts:write",
"inbox:read"
]
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}