curl -X POST 'https://crypto-api.yativo.com/api/api-keys' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"]
}'
{
"status": "success",
"data": {
"key_id": "key_01HX9KZMB3F7VNQP8R2WDGT4E5",
"api_key": "yk_live_AbCdEfGhIjKlMnOpQrStUvWxYz",
"api_secret": "ys_live_1234567890abcdef1234567890abcdef",
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"],
"expires_at": null,
"created_at": "2026-03-26T10:00:00Z"
}
}
Generate a new API key and secret for programmatic access
curl -X POST 'https://crypto-api.yativo.com/api/api-keys' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"]
}'
{
"status": "success",
"data": {
"key_id": "key_01HX9KZMB3F7VNQP8R2WDGT4E5",
"api_key": "yk_live_AbCdEfGhIjKlMnOpQrStUvWxYz",
"api_secret": "ys_live_1234567890abcdef1234567890abcdef",
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"],
"expires_at": null,
"created_at": "2026-03-26T10:00:00Z"
}
}
Bearer YOUR_ACCESS_TOKEN"Production Backend", "Staging Integration").transactions:read, transactions:write, accounts:read, accounts:write, webhooks:manage, analytics:readapi_secret is returned only once at creation. Store it securely — it cannot be retrieved again. If lost, revoke the key and create a new one.Request/Response Type Definitions
interface CreateApiKeyRequest {
name: string;
permissions?: string[];
expires_at?: string;
}
interface CreateApiKeyResponse {
status: "success";
data: {
key_id: string;
api_key: string; // Public key — safe to reference in logs
api_secret: string; // Secret — shown ONCE, store securely
name: string;
permissions: string[];
expires_at: string | null;
created_at: string;
};
}
curl -X POST 'https://crypto-api.yativo.com/api/api-keys' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"]
}'
{
"status": "success",
"data": {
"key_id": "key_01HX9KZMB3F7VNQP8R2WDGT4E5",
"api_key": "yk_live_AbCdEfGhIjKlMnOpQrStUvWxYz",
"api_secret": "ys_live_1234567890abcdef1234567890abcdef",
"name": "Production Backend",
"permissions": ["transactions:read", "transactions:write", "accounts:read"],
"expires_at": null,
"created_at": "2026-03-26T10:00:00Z"
}
}