API reference
API Keys API
Manage API keys
BetaUpdated
- Base URL
- https://reelmirror.com/api
- Authentication
- Authorization: Bearer rm_…
- Contract
- openapi.json
List API keys
GET/v1/api-keys
Response 200
List of API keys Fields below are inside data.
idstringnamestringkey_hintstringscopesarray of stringcreated_atstringdate-timelast_used_atstring | nulldate-timemonthly_limit_centsinteger | nullMonthly spending limit in cents, or null for unlimited
monthly_spent_centsintegerCurrent month spending in cents (0 if no limit set)
curl "https://reelmirror.com/api/v1/api-keys" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const response = await fetch(`https://reelmirror.com/api/v1/api-keys`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
response = requests.request(
"GET",
f"https://reelmirror.com/api/v1/api-keys",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": [
{
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"name": "My integration",
"key_hint": "string",
"scopes": [
"string"
],
"created_at": "2026-09-30T17:00:00.000Z",
"last_used_at": "2026-09-30T17:00:00.000Z",
"monthly_limit_cents": 1,
"monthly_spent_cents": 1
}
]
}Create API key
POST/v1/api-keys
Request body application/json
namestringrequiredDisplay name for the key
scopesarray of stringPermission scopes. Defaults to all except billing:read, billing:write, feedback:read, and feedback:write.
monthly_limit_centsinteger | null100–1000000Optional monthly spending limit in cents. Min 100 ($1), max 1000000 ($10,000). Null for unlimited.
Response 201
API key created. The full key is only returned once. Fields below are inside data.
idstringnamestringkeystringFull API key (only shown once)
scopesarray of stringcreated_atstringdate-timemonthly_limit_centsinteger | nullMonthly spending limit in cents, or null for unlimited
curl -X POST "https://reelmirror.com/api/v1/api-keys" \
-H "Authorization: Bearer $REELMIRROR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My integration"
}'const response = await fetch(`https://reelmirror.com/api/v1/api-keys`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "My integration"
}),
});
const payload = await response.json();import os
import requests
response = requests.request(
"POST",
f"https://reelmirror.com/api/v1/api-keys",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
json={
"name": "My integration"
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"name": "My integration",
"key": "string",
"scopes": [
"string"
],
"created_at": "2026-09-30T17:00:00.000Z",
"monthly_limit_cents": 1
}
}Update API key spending limit
PATCH/v1/api-keys/{key_id}
Path parameters
key_idstringrequired
Request body application/json
monthly_limit_centsinteger | null100–1000000Monthly spending limit in cents. Set to null to remove limit.
Response 200
Key updated Fields below are inside data.
idstringnamestringmonthly_limit_centsinteger | null
curl -X PATCH "https://reelmirror.com/api/v1/api-keys/$KEY_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'const key_id = "<key_id>";
const response = await fetch(`https://reelmirror.com/api/v1/api-keys/${key_id}`, {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
const payload = await response.json();import os
import requests
key_id = "<key_id>"
response = requests.request(
"PATCH",
f"https://reelmirror.com/api/v1/api-keys/{key_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
json={},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"name": "My integration",
"monthly_limit_cents": 1
}
}Delete API key
DELETE/v1/api-keys/{key_id}
Path parameters
key_idstringrequired
Response 200
Key deleted Fields below are inside data.
idstringdeletedbooleanOne of
true
curl -X DELETE "https://reelmirror.com/api/v1/api-keys/$KEY_ID" \
-H "Authorization: Bearer $REELMIRROR_API_KEY"const key_id = "<key_id>";
const response = await fetch(`https://reelmirror.com/api/v1/api-keys/${key_id}`, {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.REELMIRROR_API_KEY}`,
},
});
const payload = await response.json();import os
import requests
key_id = "<key_id>"
response = requests.request(
"DELETE",
f"https://reelmirror.com/api/v1/api-keys/{key_id}",
headers={
"Authorization": f"Bearer {os.environ['REELMIRROR_API_KEY']}",
},
)
payload = response.json(){
"data": {
"id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10",
"deleted": true
}
}