POST /clients – Creates a new client application.


Headers:

  • Authorization: Bearer <access_token> (required)
  • Content-Type: application/json or application/x-www-form-urlencoded (required)

Body:

Path Parameters:

  • None

Query Parameters:

  • None

  • 200 OK – Returns the newly created client Client.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid fields in request body
401 Unauthorized Missing or invalid authentication token
500 Internal Server Error Unexpected error during client creation
{
"error": "Detailed error message here"
}

POST /clients
{
"provider": "auth0-client",
"client": {
"product": "exampleProduct",
"name": "New Client App",
"callbacks": ["https://new-callback-url.com"],
"grantTypes": ["implicit"],
"allowedLogoutUrls": ["https://new-logout-url.com"],
"description": "A description for the new client",
"clientMetadata": { "key": "value" }
}
}
POST /clients
{
"provider": "cognito-client",
"userPoolId": "us-east-1_1234test",
"client": {
"product": "exampleProduct",
"name": "New Client App",
"callbacks": ["https://new-callback-url.com"],
"grantTypes": ["implicit"],
"allowedLogoutUrls": ["https://new-logout-url.com"],
"description": "A description for the new client",
"clientMetadata": { "key": "value" }
}
}
json
{
"id": "clientId",
"name": "New Client App",
"product": "exampleProduct",
"callbacks": ["https://new-callback-url.com"],
"grantTypes": ["implicit"],
"allowedLogoutUrls": ["https://new-logout-url.com"],
"description": "A description for the new client",
"clientMetadata": { "key": "value" }
// More fields may be present depending on the provider
}

  • Parameters

    • event: APIGatewayProxyEvent

      The API Gateway event containing the request.

    • context: Context
    • callback: Callback<APIGatewayProxyResult>

    Returns void | Promise<APIGatewayProxyResult>

    A Promise resolving to an API Gateway-compatible response.