latestOpenAPI 3.0.32026-08-20146131.7 MB
672b1916ba61
Projects
Create project API key
Creates an API key scoped to the project. The full key is returned once.
post/v1/projects/{projectId}/api-keys
Path parameters
projectIdstring required
Project identifier.
Example:prj_example
Project identifier.
Request body
Example request
{
"name": "Primary Key",
"role": "api_developer",
"walletScope": "selected",
"provisionWallet": {
"connectionId": "cconn_123"
},
"walletLabel": "Mint authority wallet",
"walletPurpose": "mint_authority"
}Response
Project API key created
Example response
{
"data": {
"apiKey": {
"id": "key_example",
"name": "Primary Key",
"key": "sk_test_example",
"keyPrefix": "sk_test_abc",
"role": "api_developer",
"environment": "sandbox",
"expiresAt": "2025-12-31T00:00:00.000Z",
"createdAt": "2025-01-01T00:00:00.000Z"
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}