GET /tenants/{tenantId}/product/{product} – Retrieves tenant given the ID and product.


Headers:

  • Authorization: Bearer <access_token> (required)

Body:

  • None

Path Parameters:

  • tenantId: The ID of the tenant to retrieve. (required)
  • product: The product associated with the tenant. (required)

Query Parameters:

  • None

  • 200 OK – Returns a JSON-stringified Tenant object.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid parameters
401 Unauthorized Missing or invalid authentication token
404 Not Found Tenant not found
500 Internal Server Error Unexpected error during tenant retrieval
{
"error": "Detailed error message here"
}

GET /tenants/tenant123/product/exampleProduct
{
"tenantId": "tenant123",
"product": "exampleProduct",
"domain": "test.example.com",
"endpointUrl": "https://api.test.example.com"
}

  • 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.