Skip to main content

Get business

Retrieve complete business information including metadata and application configuration.
GET /api/v1/business/{businessId}

Path parameters

businessId
integer
required
The unique identifier for the business

Response

Returns a business object with metadata and application configuration.
Success
boolean
Indicates whether the request was successful
Data
object
The business data object
Code
string
Error code if Success is false
Message
string
Error message if Success is false

Example request

curl https://api.iqra.ai/api/v1/business/12345 \
  -H "Authorization: Token YOUR_API_KEY"

Example response

{
  "Success": true,
  "Data": {
    "BusinessData": {
      "Id": 12345,
      "MasterUserEmail": "[email protected]",
      "Name": "My Business",
      "LogoUrl": "https://s3.amazonaws.com/...",
      "DefaultLanguage": "en",
      "Languages": ["en", "es", "fr"],
      "Tutorials": {},
      "Permission": {
        "MakeCall": true,
        "Conversations": {
          "ConversationPermissions": true,
          "Outbound": true,
          "Inbound": true
        }
      }
    },
    "BusinessApp": {
      "Id": 12345,
      "Context": {},
      "Tools": [],
      "Agents": [
        {
          "Id": "agent_abc123",
          "General": {
            "Name": "Sales Agent",
            "Description": "Handles sales inquiries"
          },
          "Settings": {
            "BackgroundAudioUrl": "https://s3.amazonaws.com/..."
          }
        }
      ],
      "Integrations": [],
      "Numbers": [],
      "TelephonyCampaigns": []
    }
  }
}

Permissions required

This endpoint requires:
  • Valid API key with access to the specified business
  • User account must not be disabled
  • Business must not be disabled
  • API key must not have business restrictions, or must include this business ID

Notes

  • Logo URLs and background audio URLs are pre-signed and expire after 24 hours
  • The response includes complete business configuration including all agents, integrations, and campaigns
  • Encrypted integration fields are excluded from the response for security

Build docs developers (and LLMs) love