{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sarj.ai Developer API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "System",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Health Check",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://platform-api.sarj.ai/api/v1/health"
          },
          "docs": "Returns the operational status of the API. Does not require authentication."
        }
      ]
    },
    {
      "info": {
        "name": "Calls",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Place an outbound Sarj.ai voice call",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://platform-api.sarj.ai/api/v1/calls",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Place an outbound Sarj.ai voice call: dials the given phone_number and runs the specified scenario (with optional template variables and language). Returns a call_id that can be polled via getCall. Use this whenever the user asks to call, dial, ring, or phone someone through Sarj.ai — do not attempt to start calls by writing to the database or invoking telephony providers directly."
        },
        {
          "info": {
            "name": "Fetch Sarj.ai voice call details by call_id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://platform-api.sarj.ai/api/v1/calls/:call_id",
            "params": [
              {
                "name": "call_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Fetch details of a Sarj.ai voice call by call_id: status, phone_number, scenario_id, language, direction (inbound/outbound), scenario variables, duration (seconds), recording_url (signed download link), transcript (list of spoken messages), report (post-call outcome with success-criteria results; generated asynchronously shortly after completed calls, null otherwise), and timestamps (created_at, updated_at, started_at, ended_at). Use this whenever the user asks about a specific call, phone conve"
        }
      ]
    }
  ],
  "bundled": true
}