Get Call Log

Retrieve a specific call log by ID.

This endpoint retrieves a detailed call log record with enriched information. Access is restricted based on organization and API key permissions.

Security:

  • Regular API keys can only access call logs for their organization's phone numbers
  • Master API keys (is_master=true) can access call logs for any organization/phone number
  • Organization's access is strictly limited to their own phone numbers

Parameters: request (Request): The FastAPI request object call_id (str): The ID of the call log to retrieve db (AsyncSession): The database session (injected) organization_id (Optional[int]): The organization ID from the API key or request

Returns: Dict[str, Any]: The call log data with enriched information

Raises: HTTPException: - 400: If organization ID is missing - 404: If the call log is not found - 403: If access is denied to the call log - 422: If there's a validation error - 500: If an unexpected error occurs

Language
Credentials
Header
Click Try It! to start a request and see the response here!