API Auth
Create organization API client secret
Creates a new secret for an organization API client. Returns the plain secret (available only once).
post/api/v1/organizations/{organization_id}/clients/{client_id}/secrets
Path parameters
organization_idstring required
Unique identifier of the organization
client_idstring required
Unique identifier of the API client
Response
Client secret created successfully. Returns the new secret ID and the plain secret value (only available at creation time). The secret can be used immediately for authentication.
Example response
{
"plain_secret": "m2morg_client_secret_xyz123",
"secret": {
"create_time": "2024-01-05T14:48:00Z",
"created_by": "user_12345",
"expire_time": "2025-01-05T14:48:00Z",
"id": "sec_1234abcd5678efgh",
"last_used_time": "2024-02-15T10:30:00Z",
"plain_secret": "sec_1234567890abcdefghijklmnopqrstuvwxyz",
"secret_suffix": "xyzw",
"update_time": "2024-01-10T09:12:00Z"
}
}