---
updatedAt: 2026-09-09T22:08:03.000Z
agentTools:
  projectIndex: https://developer.callhub.io/llms.txt
---

# /agent-status/

Get the current agent status

Fetch the current status of the agent here.\
Get Agent Token from [Token Page](https://app.callhub.io/user_detail_change/?action=tabs-6)

This API returns 5 properties. Each property signifies a different stage in the lifecycle of an agent connecting to a campaign and making calls.

If all of the properties are null, then the agent has not joined any campaign and is not on call.

Once the [/conference](https://developer.callhub.io/reference/conference) api is used successfully to connect to a campaign, the `connected_campaign` field returns the ID of the connected campaign.

When the [/conference/:id/agent](https://developer.callhub.io/reference/agent-join) api is used successfully to call the agent and the agent *picks* the call, the `call_uuid` returns the ID of the call.

After using [/conference/:id/subscriber](https://developer.callhub.io/reference/make-next-call) successfully to initiate a call with the subscriber, the `current_subscriber` field returns the ID of the subscriber being called.

After the subscriber picks up the call, `subscriber_uuid` returns the UUID of the call.

After using /conference/:id/supervisor to call the supervisor and the supervisor picks up the call, the `supervisor_uuid` returns the UUID of the supervisor's call.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.callhub.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "x-default": "",
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/agent-status/": {
      "get": {
        "summary": "/agent-status/",
        "description": "Get the current agent status",
        "operationId": "agent-status",
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"call_uuid\": null,\n  \"connected_campaign\": null,\n  \"current_subscriber\": null,\n  \"subscriber_uuid\": null,\n  \"supervisor_uuid\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "call_uuid": {},
                    "connected_campaign": {},
                    "current_subscriber": {},
                    "subscriber_uuid": {},
                    "supervisor_uuid": {}
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "javascript",
              "code": "$.ajax({\n  url: 'https://api.callhub.io/v2/agent-status/',\n  headers: {\n    // Use the token obtained from /v2/agent-key api\n    'Authorization': 'Token ' + token\n  },\n  method: 'GET'\n}).done(function(data) {\n  console.log('Current Agent Status: ', data);\n  // ID of the campaign the agent has joined. If null, then agent has not joined a campaign\n  // If this is not null, yet call_uuid is null, then agent is being called\n  console.log('Agent is connecting to the campaign: ', data.connected_campaign);\n  // If call_uuid is not null, agent is connected to the campaign\n  console.log('Agent is connected to the campaign: ', data.call_uuid);\n  // If current_subscriber is not null, agent is calling a subscriber\n  console.log('Agent is calling a subscriber: ', data.current_subscriber);\n  // If subscriber_uuid is not null, agent is currently on call with a subscriber\n  console.log('Agent is on call with a subscriber: ', data.subscriber_uuid);\n  // If supervisor_uuid is not null, a supervisor is connected to the call\n  console.log('Agent is on call with a supervisor: ', data.supervisor_uuid);\n});\n"
            }
          ],
          "samples-languages": [
            "javascript"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```