> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Challenge Prompts

## Manage custom challenge prompt for campaigns

A custom challenge prompt can be created from provided text or a professional prompt recording can be assigned as custom challenge prompt.

### Create custom challenge prompt

**Example: create custom challenge prompt**

POST

`https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Request Body

```json theme={null}
{
  "ivr_tree": {
          "record_calls": false,
          "custom_challenge_prompt_text": "Thank you for calling.",
          "root": {
              "node_type": "Connect",
              "destination_phone_number": "8056173768",
              "destination_country_code": ""
          }
    }
}
```

### Assign prompt recording as custom challenge prompt

**Example: assign prompt recording as custom challenge prompt**

POST

`https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Request Body

```json theme={null}
{
  "ivr_tree": {
          "record_calls": false,
          "custom_challenge_prompt_id_from_network": "rec34",
          "root": {
              "node_type": "Connect",
              "destination_phone_number": "8056173768",
              "destination_country_code": ""
          }
    }
}
```

### Retrieve custom challenge prompt for a campaign

**Example: retrieve custom challenge prompt for a campaign**

GET

`https://invoca.net/api/2022-08-01/<network_id>/advertisers/<advertiser_id_from_network>/advertiser_campaigns/<advertiser_campaign_id_from_network>.json`

Response

```json theme={null}
{
  "name": "Selling Shoes",
  "status": "Activated",
  "future_terms": {
    "ivr_tree": {
      "record_calls": false,
      "custom_challenge_prompt_text": "Thank you for calling.",
      "custom_challenge_prompt_id_from_network": "rec34",
      "root": {
        "node_type": "Connect",
        "destination_phone_number": "8056173768",
        "destination_country_code": ""
      }
    }
  }
}
```


## Related topics

- [How the Custom Challenge Prompt Works](https://docs.invoca.com/s/article/how-the-custom-challenge-prompt-works.md)
- [Network Integration](https://docs.invoca.com/en/latest/api_documentation/network_integration/index.md)
- [Why Are Calls to RingPool Numbers Still Prompted Even When Custom Challenge Settings Are Disabled?](https://docs.invoca.com/s/article/calls-prompted-custom-challenge-disabled.md)
- [Custom Wrong/No Keypress Error Prompt](https://docs.invoca.com/en/latest/api_documentation/network_integration/custom_ivr_error_prompts/index.md)
- [IVR Behavior: Update Your Language Settings](https://docs.invoca.com/s/article/ivr-language-settings.md)
