Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the campaign
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/campaign/{id} \
  --header 'Authorization: Bearer <token>'{
  "status": true,
  "data": {
    "campaign": {
      "_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "organization": "<string>",
      "agentId": "<string>",
      "createdBy": "<string>",
      "audienceId": "<string>",
      "participantsCount": 123,
      "status": "draft",
      "maxRetries": 3,
      "retryDelay": 15,
      "scheduledAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    },
    "events": [
      {
        "_id": "<string>",
        "campaignId": "<string>",
        "triggerSource": "<string>",
        "eventAction": "<string>",
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ],
    "metrics": {
      "total_participants": 500,
      "contacts_called": 247,
      "contacts_connected": 150
    }
  }
}Get a campaign with detailed metrics
curl --request GET \
  --url https://atoms-api.smallest.ai/api/v1/campaign/{id} \
  --header 'Authorization: Bearer <token>'{
  "status": true,
  "data": {
    "campaign": {
      "_id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "organization": "<string>",
      "agentId": "<string>",
      "createdBy": "<string>",
      "audienceId": "<string>",
      "participantsCount": 123,
      "status": "draft",
      "maxRetries": 3,
      "retryDelay": 15,
      "scheduledAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    },
    "events": [
      {
        "_id": "<string>",
        "campaignId": "<string>",
        "triggerSource": "<string>",
        "eventAction": "<string>",
        "createdAt": "2023-11-07T05:31:56Z"
      }
    ],
    "metrics": {
      "total_participants": 500,
      "contacts_called": 247,
      "contacts_connected": 150
    }
  }
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the campaign