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

# NewLead API

> Create leads, send messages and templates, place calls and receive events from your agents.

The NewLead API is a REST API for the text and voice agents in your subaccount.

```text theme={null}
https://rest.newlead.ai/v1
```

> [card] [Quickstart](https://docs.newlead.ai/quickstart.md)
>
> Create a key, a lead and your first message.

> [card] [Authentication](https://docs.newlead.ai/authentication.md)
>
> Send your API key with every request.

> [card] [Webhooks](https://docs.newlead.ai/webhooks.md)
>
> Receive lead, message and call events at your URL.

> [card] [Errors](https://docs.newlead.ai/errors.md)
>
> Understand each error and when to retry.

> [card] [n8n](https://docs.newlead.ai/n8n.md)
>
> Use NewLead in your workflows with the official node.

> [card] [API reference](https://docs.newlead.ai/api-reference/text-agents/list-text-agents.md)
>
> Browse every operation, with its parameters and responses.

## Conventions

* Requests and responses are JSON.
* A response is the resource itself, with no wrapper. Lists use the [list format](https://docs.newlead.ai/pagination.md).
* IDs are UUIDs.
* Timestamps are ISO 8601, in UTC.
* Phone numbers are E.164 and include the country code: `+34600111222`.
* A field with no value is `null`.
* A field the operation does not accept returns `400 parameter_unknown`, so a misspelled name never goes unnoticed.

## What you can do

| Resource | Operations |
| - | - |
| [Text agents](https://docs.newlead.ai/api-reference/text-agents/list-text-agents.md) | List agents, their lead fields and their templates |
| [Voice agents](https://docs.newlead.ai/api-reference/voice-agents/list-voice-agents.md) | List and retrieve voice agents |
| [Leads](https://docs.newlead.ai/api-reference/leads/list-leads.md) | Create, update, delete and list leads, and pause or resume the AI |
| [Messages](https://docs.newlead.ai/api-reference/messages/send-a-message.md) | Send text and templates, and read a lead's messages |
| [Calls](https://docs.newlead.ai/api-reference/calls/create-a-call.md) | Place outbound calls, and read calls, transcripts and recordings |
| [Webhook endpoints](https://docs.newlead.ai/api-reference/webhooks/create-a-webhook-endpoint.md) | Register URLs, send test events and read the delivery log |
| [Properties](https://docs.newlead.ai/api-reference/properties/list-properties.md) | List your published properties with their photos, or find one by reference |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.