Api keys
Manage API keys. Only from the dashboard, so a leaked key cannot mint new ones.
List API keys
Section titled “List API keys”GET
/v1/api-keysDashboard onlyResponse 200
data []
idstringrequirednamestringrequiredprefixstringrequiredcreatedAtstring (date-time)requiredrevokedAtstring (date-time)
curl "https://api.usecrier.com/v1/api-keys" \ -H "Authorization: Bearer $CRIER_API_KEY"const res = await fetch('https://api.usecrier.com/v1/api-keys', { headers: { Authorization: `Bearer ${process.env.CRIER_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.usecrier.com/v1/api-keys", headers={"Authorization": f"Bearer {os.environ['CRIER_API_KEY']}"},)data = res.json()["data"]Create an API key
Section titled “Create an API key”POST
/v1/api-keysDashboard onlyBody
namestringrequired
Response 201
data
keyobjectrequiredkey
idstringrequirednamestringrequiredprefixstringrequiredcreatedAtstring (date-time)requiredrevokedAtstring (date-time)
secretstringrequiredThe full key, shown only this once.
curl -X POST "https://api.usecrier.com/v1/api-keys" \ -H "Authorization: Bearer $CRIER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "production" }'const res = await fetch('https://api.usecrier.com/v1/api-keys', { method: 'POST', headers: { Authorization: `Bearer ${process.env.CRIER_API_KEY}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "production" }),});const { data } = await res.json();import os, requests
res = requests.post( "https://api.usecrier.com/v1/api-keys", headers={"Authorization": f"Bearer {os.environ['CRIER_API_KEY']}"}, json={ "name": "production" },)data = res.json()["data"]Revoke an API key
Section titled “Revoke an API key”DELETE
/v1/api-keys/{id}Dashboard onlyParameters
idstringrequired
Response 204
No content
curl -X DELETE "https://api.usecrier.com/v1/api-keys/key_2b4n6m" \ -H "Authorization: Bearer $CRIER_API_KEY"await fetch('https://api.usecrier.com/v1/api-keys/key_2b4n6m', { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.CRIER_API_KEY}`, },});import os, requests
requests.delete( "https://api.usecrier.com/v1/api-keys/key_2b4n6m", headers={"Authorization": f"Bearer {os.environ['CRIER_API_KEY']}"},)© 2026 Crier by TWOFACES ·usecrier.com ·Dashboard ·soporte@twofacesco.com