# lead_has_no_campaign (/errors/lead_has_no_campaign)

| HTTP status | Type | Code |
| --- | --- | --- |
| 422 | `invalid_request_error` | `lead_has_no_campaign` |

## What it means [#what-it-means]

Calling a lead uses the settings of its campaign. Add the lead to an outbound campaign first.

## How to handle it [#how-to-handle-it]

Fix the request before sending it again; retrying the same request returns the same error. `error.param` names the offending field when there is one.

## Example response [#example-response]

```json
{
  "detail": [
    {
      "type": "missing",
      "loc": [
        "body",
        "phone"
      ],
      "msg": "Field required"
    }
  ],
  "error": {
    "type": "invalid_request_error",
    "code": "lead_has_no_campaign",
    "message": "Lead is not on a campaign.",
    "param": "phone",
    "docUrl": "https://docs.callmitra.ai/errors/lead_has_no_campaign",
    "requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
  }
}
```

Branch on `error.code`; it never changes once published. The `message` text can change. See [Errors](/errors) for the envelope.

## Returned by [#returned-by]

- `POST /api/v1/leads/{lead_id}/call-now` — Call a lead now