Path parameters
-
The unique identifier of the application.
POST
/api/applications/{id}/secrets
curl \
--request POST https://[tenant_id].logto.app/api/applications/{id}/secrets \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"name":"string","expiresAt":42.0}'
Request examples
{
"name": "string",
"expiresAt": 42.0
}
Response examples (201)
{
"tenantId": "string",
"applicationId": "string",
"name": "string",
"value": "string",
"createdAt": 42.0,
"expiresAt": 42.0
}