3d5d69795558
Create an API key
Generate a new API key
Request body
Type of API key (scope)
User ID (required when type is USER)
Team ID (required when type is TEAM)
Human-readable alias for the API key
Description of the API key's purpose
When the API key should expire (must be in the future, RFC3339 format)
Email address of the person creating this API key (will be looked up in the database)
If true, creates an SA type user with admin role and attaches the API key to it (similar to migration logic)
Response
Created API key
Unique identifier for the API key
The key identifier (defaults to id for legacy keys, can be updated to any string value)
Whether this is a legacy API key
Account identifier this API key belongs to
Type of API key (scope)
User ID if this is a user-scoped API key
Name of the user if this is a user-scoped API key
Team ID if this is a team-scoped API key
Name of the team if this is a team-scoped API key
Human-readable alias for the API key
Description of the API key's purpose
When the API key expires
When the API key was last used for authentication
User ID of the person who created this API key
Name of the user who created this API key
When the API key was created
When the API key was last updated
The API key secret (only returned on creation, plaintext with ffl_live_ prefix)