{
"secretKey": "<string>"
}Generates a new API key for the authenticated user
{
"secretKey": "<string>"
}The name of the API key. This should be a short, descriptive name that identifies the purpose of the API key. It is recommended to include the name of the application or service that will be using the API key.
"Development Environment API Key"
The scope of the API key. This defines the resources that the API key can access. If no scope is provided, the API key won't be valid for ANY resources. If multiple scopes are provided, say accountId and environmentId where environmentId is part of the account, the key will still be valid for everything in the account. It is recommended to use the narrowest scope possible to limit the API key's access.
Show child attributes
The ID of the organization this API key is scoped to. If provided, this API Key will be valid for all resources owned by the organization. This is a VERY wide scope and not recommended in most cases.
"123e4567-e89b-12d3-a456-426614174000"
The ID of the account this API key is scoped to. If provided, this API Key will be valid for all resources owned by the account. This is a wide scope and not recommended in most cases.
["123e4567-e89b-12d3-a456-426614174001"]The ID of the widget this API key is scoped to. If provided, this API Key will be valid for all resources owned by the widget. This is a fairly wide scope and not recommended in most cases.
["123e4567-e89b-12d3-a456-426614174002"]The ID of the environment this API key is scoped to. If provided, this API Key will be valid for all resources tied to the environment. This is a narrow scope and IS recommended in most cases.
["123e4567-e89b-12d3-a456-426614174003"]A description of the API key. This should be a short description of what the API key is used for. It is recommended to include the name of the application or service that will be using the API key.
"API key for the Development Environment"