Api Keys Create
Create a new API key for the organization.
``super().post()`` routes through
``OrganizationInjectionMixin.post`` which calls
``inject_target_organization(request)`` — that handles superadmin-
gated ``organization`` / ``organization_id`` injection for us. We
only need to pin ``user`` (which the injection helper does not
touch) before delegating.
Authentication
AuthorizationBearer
JWT access token or Respan API key
Request
This endpoint expects an object.
project
name
A free-form name for the API key. Need not be unique. 50 characters max.
revoked
If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)
expiry_date
Once API key expires, clients cannot use it anymore.
max_usage
rate_limit
spending_limit
is_test
is_temporary
Response
id
api_key
suffix
status
active- Activeexpired- Expiredrevoked- Revoked
prefix
hashed_key
created
key_usage
last_used
spending_in_period
revoked_at
revoked_by_email
user
organization
created_by
updated_by
project
name
A free-form name for the API key. Need not be unique. 50 characters max.
revoked
If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)
expiry_date
Once API key expires, clients cannot use it anymore.
max_usage
rate_limit
spending_limit
is_test
is_temporary