Method | HTTP request | Description |
---|---|---|
createApiKey | POST /api_keys | Create API Key |
deleteApiKey | DELETE /api_keys/ | Delete API Key |
generateApiKey | POST /api_keys/generate | Generate API Key |
getApiKeys | GET /api_keys | Get API Keys |
createApiKey
CreateApiKeyResponse createApiKey(createApiKeyRequest)Create a new API key with a user-provided public key. This endpoint allows users with Premier or Market Maker API usage levels to create API keys by providing their own RSA public key. The platform will use this public key to verify signatures on API requests.
Example
Parameters
Name | Type | Description | Notes |
---|---|---|---|
createApiKeyRequest | CreateApiKeyRequest |
Return type
CreateApiKeyResponseAuthorization
bearerAuthHTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
201 | API key created successfully | - |
400 | Bad request - invalid input | - |
401 | Unauthorized - authentication required | - |
403 | Forbidden - insufficient permissions | - |
500 | Internal server error | - |
deleteApiKey
deleteApiKey()Delete an existing API key. This endpoint permanently deletes an API key. Once deleted, the key can no longer be used for authentication. This action cannot be undone.
Example
Parameters
Name | Type | Description | Notes |
---|---|---|---|
apiKey | [string] | API key ID to delete | defaults to undefined |
Return type
void (empty response body)Authorization
bearerAuthHTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
204 | API key successfully deleted | - |
400 | Bad request - invalid input | - |
401 | Unauthorized - authentication required | - |
404 | Resource not found | - |
500 | Internal server error | - |
generateApiKey
GenerateApiKeyResponse generateApiKey(generateApiKeyRequest)Generate a new API key with an automatically created key pair. This endpoint generates both a public and private RSA key pair. The public key is stored on the platform, while the private key is returned to the user and must be stored securely. The private key cannot be retrieved again.
Example
Parameters
Name | Type | Description | Notes |
---|---|---|---|
generateApiKeyRequest | GenerateApiKeyRequest |
Return type
GenerateApiKeyResponseAuthorization
bearerAuthHTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
201 | API key generated successfully | - |
400 | Bad request - invalid input | - |
401 | Unauthorized - authentication required | - |
500 | Internal server error | - |
getApiKeys
GetApiKeysResponse getApiKeys()Retrieve all API keys associated with the authenticated user. API keys allow programmatic access to the platform without requiring username/password authentication. Each key has a unique identifier and name.
Example
Parameters
This endpoint does not have any parameters.Return type
GetApiKeysResponseAuthorization
bearerAuthHTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
Status code | Description | Response headers |
---|---|---|
200 | List of API keys retrieved successfully | - |
401 | Unauthorized - authentication required | - |
500 | Internal server error | - |