Path parameters
-
The unique identifier of the application.
POST /api/applications/{id}/secrets
curl \
-X POST https://[tenant_id].logto.app/api/applications/{id}/secrets \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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
}