Create a sub-account API key
Creates a sandbox or production API key for a sub-account. Treat the returned key value as a secret. For rotation, create a replacement, cut traffic over, then revoke the old key.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
sub_account_id
Sub-account ID
Request
This endpoint expects an object.
name
environment
Allowed values:
Response
sub-account API key created
object
Allowed values:
id
name
value
live_mode
created_at
updated_at
api_version
Allowed values:
Errors
400
Create Sub Account API Key Request Bad Request Error
403
Create Sub Account API Key Request Forbidden Error
404
Create Sub Account API Key Request Not Found Error