Create an API key
The key itself is returned once, in this response, and cannot be read again.
apiKeyAuthorizationBearer <token>An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.
application/json- body
name*string1 <= length <= 60level?stringWhat this key may do: 'read' reads only, 'manage' also changes what you already own, 'buy' also spends money. Absent means no ceiling at all, the same as every key made before this field existed
"read""manage""buy"perOrderLimit?integerLargest single order this key may place, in cents. Absent means no ceiling
0 <= value <= 100000000dailyLimit?integerMost this key may spend in one UTC day, in cents. Absent means no ceiling
0 <= value <= 100000000Created
application/json- response
Created
id*stringname*stringprefix*stringThe first characters of the key, to recognise it by
level?stringWhat this key may do: 'read' reads only, 'manage' also changes what you already own, 'buy' also spends money. Absent means no ceiling at all, the same as every key made before this field existed
"read""manage""buy"perOrderLimit?integerLargest single order this key may place, in cents
0 <= value <= 100000000dailyLimit?integerMost this key may spend in one UTC day, in cents
0 <= value <= 100000000lastUsedAt*|date-timecreatedAt*stringdate-timekey*stringThe key itself. Store it now; it is not shown again
curl -X POST "https://example.com/v1/api-keys" \ -H "Content-Type: application/json" \ -d '{ "name": "production" }'{ "id": "key_01K6XJ4Q8ZT3M9R5V2B7WDHNCA", "name": "production", "prefix": "rhq_test_k3J9xQ", "level": "read", "perOrderLimit": 500000, "dailyLimit": 500000, "lastUsedAt": null, "createdAt": "2026-10-07T11:04:31.000Z", "key": "rhq_test_k3J9xQ2mVb7TnY4wLc8HdR5sZ"}