v2
latestOpenAPI 3.1.02026-08-01244220427.0 KBToken
Create App Key
Create an application-specific key for accessing other APIs.
Parameters:
- user (User): The user instance for whom the app key is being created.
- data (AppKeyCreate, optional): The data containing the name, full access rights, and optional expiration.
Returns:
- dict: A dictionary containing the app key's ID, token, and expiration date.
post/v2/appkeys
Headers
authorizationstring nullable
Request body
Example request
{
"allowedTemplates": [
"5eb7cf5a86d9755df3a6c593"
]
}Response
Successful Response
{"stackTrail":"paths:/v2/appkeys:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}