Token
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
Request
- Base URLhttps://api.loyalty.dog
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
authorizationstring nullable
Request body
Example request
{
"allowedTemplates": [
"5eb7cf5a86d9755df3a6c593"
]
}Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 7 revisions of this API.