# Pinnacle

> Send and validate messages and read contacts, conversations, call events and phone numbers.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/pinnacle

## Actions

### Get Call

Retrieve one voice call by its Pinnacle call ID.

**Inputs**

- ID (`id`, text, required): Pinnacle call ID.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "answered_at": "2026-11-30T12:00:00Z",
    "conference_id": "sample_conference_id",
    "created_at": "2026-11-30T12:00:00Z",
    "direction": "INBOUND",
    "ended_at": "2026-11-30T12:00:00Z",
    "from": "Example",
    "hangup_cause": "Example",
    "id": "sample_id",
    "metadata": {},
    "record": false,
    "recording_state": "PENDING",
    "started_at": "2026-11-30T12:00:00Z",
    "state": "INITIATED",
    "to": "Example"
  }
}
```

### Get Contact

Retrieve contact information for a given number.

**Inputs**

- ID (`id`, text): Unique identifier of a specific contact you want to retrieve. Either this parameter or `phoneNumber` must be provided, but not both.
- Phone number (`phone_number`, text): Phone number you want to look up contact information for, provided in URL-encoded E.164 format with %2B prefix instead of +.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "description": "Example",
    "email": "Example",
    "id": "sample_id",
    "name": "Example",
    "phoneNumber": "Example",
    "tags": [
      "Example"
    ]
  }
}
```

### Get Conversation

Fetch a specific conversation using either its unique identifier or by matching sender and recipient details.

**Inputs**

- Conversation (`id`, text, required): Choose a conversation.

**Outputs**

- `data` (object): Conversation that was found.

**Example output**

```json
{
  "data": {
    "brandId": "sample_brandId",
    "campaign": {
      "id": "sample_id",
      "type": "TOLL_FREE"
    },
    "contact": {
      "id": "sample_id",
      "phoneNumber": "Example"
    },
    "createdAt": "Example",
    "id": "sample_id",
    "notes": "Example",
    "sender": {
      "capabilities": {
        "mms": false,
        "sms": false,
        "voice": false
      },
      "createdAt": "Example",
      "isSandbox": false,
      "phoneNumber": "Example",
      "updatedAt": "Example"
    },
    "updatedAt": "Example"
  }
}
```

### Get Message by ID

Retrieve a previously sent message.

**Inputs**

- ID (`id`, text, required): Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "content": {
      "text": "Example"
    },
    "cost": 1,
    "deliveredAt": "Example",
    "error": "Example",
    "id": "sample_id",
    "method": "API",
    "numSegments": 1,
    "receiver": "Example",
    "sender": "Example",
    "sentAt": "Example",
    "status": "QUEUED",
    "type": "SMS"
  }
}
```

### Get Phone Number Status

Retrieve a phone number's order status and campaign attachment status. Check if a number is active and ready to send messages.

**Inputs**

- Phone number (`phone_number`, text, required): Phone number in E164 format that is in review.

**Outputs**

- `data` (object): Response for get phone number status.

**Example output**

```json
{
  "data": {
    "errors": [
      "Example"
    ],
    "phoneNumber": "Example",
    "status": "PENDING"
  }
}
```

### List Audiences

List all audiences with optional filtering and pagination. Results are sorted by creation date, newest first.

**Inputs**

- Page index (`page_index`, number): Pageindex. At least 0. Default: `0`.
- Page size (`page_size`, number): Pagesize. From 1 to 100. Default: `20`.
- Name (`name`, text): Filter audiences by name (partial match).

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": "Example",
        "description": "Example",
        "id": "sample_id",
        "name": "Example",
        "updatedAt": "Example"
      }
    ],
    "hasMore": false
  }
}
```

### List Call Events

List the event timeline for a call.

**Inputs**

- ID (`id`, text, required): Pinnacle call ID.
- Limit (`limit`, number): Maximum call events to return. From 1 to 200.
- Cursor (`cursor`, text): Opaque cursor returned by the previous page.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "call_session_id": "sample_call_session_id",
        "command_id": "sample_command_id",
        "direction": "INBOUND",
        "event_type": "Example",
        "id": "sample_id",
        "latency_ms": 1,
        "occurred_at": "2026-11-30T12:00:00Z",
        "payload": {},
        "received_at": "2026-11-30T12:00:00Z",
        "source": "WEBHOOK"
      }
    ],
    "next_cursor": "Example"
  }
}
```

### List Calls

List voice calls for your team. Results are sorted newest first.

**Inputs**

- Limit (`limit`, number): Maximum calls to return. From 1 to 100.
- Cursor (`cursor`, text): Opaque cursor returned by the previous page.
- State (`state`, text): Current voice call lifecycle state. This field is named `state` on Call objects and `status` on `CALL.STATUS` webhook payloads. - `INITIATED`: Pinnacle accepted the call request and is setting up the call with the voice provider. - `RINGING`: The call is ringing and has not been answered yet. - `ANSWERED`: The call has been answered and is active. - `BRIDGED`: The call is connected to another call leg, such as after a transfer or bridge command. - `ENDED`: The call ended normally. - `FAILED`: The call could not be established or could not continue because of a provider or system failure. -. One of: `INITIATED`, `RINGING`, `ANSWERED`, `BRIDGED`, `ENDED`, `FAILED`, `NO_ANSWER` (No answer), `BUSY`, `CANCELED`.
- Direction (`direction`, text): Direction of the call relative to your Pinnacle team. - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers. - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers. One of: `INBOUND`, `OUTBOUND`.
- From (`from`, text): From.
- To (`to`, text): To.
- Created after (`created_after`, date and time): Created after.
- Created before (`created_before`, date and time): Created before.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "answered_at": "2026-11-30T12:00:00Z",
        "conference_id": "sample_conference_id",
        "created_at": "2026-11-30T12:00:00Z",
        "direction": "INBOUND",
        "ended_at": "2026-11-30T12:00:00Z",
        "from": "Example",
        "hangup_cause": "Example",
        "id": "sample_id",
        "metadata": {},
        "record": false,
        "recording_state": "PENDING",
        "started_at": "2026-11-30T12:00:00Z",
        "state": "INITIATED",
        "to": "Example"
      }
    ],
    "next_cursor": "Example"
  }
}
```

### List Contacts

List all contacts with optional filtering and pagination. Results are sorted by creation date, newest first.

**Inputs**

- Page index (`page_index`, number): Pageindex. At least 0. Default: `0`.
- Page size (`page_size`, number): Pagesize. From 1 to 100. Default: `20`.
- Phone number (`phone_number`, text): Filter contacts by phone number (E.164 format).
- Name (`name`, text): Filter contacts by name (partial match).
- Tags (`tags`, list): Filter contacts by tags.
- Is archived (`is_archived`, true/false): Filter contacts by archived status.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "description": "Example",
        "email": "Example",
        "id": "sample_id",
        "name": "Example",
        "phoneNumber": "Example",
        "tags": [
          "Example"
        ]
      }
    ],
    "hasMore": false
  }
}
```

### List Conversation Messages

Retrieve a paginated and filtered list of messages for a specific conversation.

**Inputs**

- ID (`id`, text, required): Unique identifier of the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`.
- Page index (`page_index`, number): Zero-based index for pagination. At least 0. Default: `0`.
- Page size (`page_size`, number): Number of messages to return per page. From 10 to 50. Default: `10`.
- Sort order (`sort_order`, text): Sort order for messages. - `asc`: Oldest messages first - `desc`: Newest messages first (default). One of: `asc`, `desc`. Default: `desc`.
- Direction (`direction`, text): Filter messages by direction. - `INBOUND`: Messages received from contacts - `OUTBOUND`: Messages sent to contacts. One of: `INBOUND`, `OUTBOUND`.
- Status (`status`, text): Filter messages by delivery status. One of: `PENDING`, `SENT`, `SEND_FAILED` (Send failed), `DELIVERED`, `DELIVERY_FAILED` (Delivery failed), `FALLBACK_SENT` (Fallback sent), `RECEIVED`, `READ`.
- Type (`type`, text): Filter messages by protocol type. One of: `SMS`, `MMS`, `RCS`.
- Date from (`date_from`, date and time): Filter messages sent on or after this date (ISO 8601 format).
- Date to (`date_to`, date and time): Filter messages sent on or before this date (ISO 8601 format).

**Outputs**

- `data` (object): Paginated list of messages in a conversation.

**Example output**

```json
{
  "data": {
    "count": 1,
    "hasMore": false,
    "messages": [
      {
        "content": {
          "text": "Example"
        },
        "cost": 1,
        "deliveredAt": "Example",
        "direction": "INBOUND",
        "error": "Example",
        "id": "sample_id",
        "method": "API",
        "numSegments": 1,
        "reactions": [
          "Example"
        ],
        "receiver": "Example",
        "sender": "Example",
        "sentAt": "Example",
        "status": "QUEUED",
        "type": "SMS"
      }
    ]
  }
}
```

### List Conversations

Retrieves conversations by page with optional filtering based off provided parameters.

**Inputs**

- Brand ID (`brand_id`, text): The unique identifier of the brand to filter conversations. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`.
- Campaign ID (`campaign_id`, text): The unique identifier of the campaign to filter conversations. This identifier is a string that begins with the prefix: - TOLL_FREE: `tf_` (e.g., `tf_1234567890`) - 10DLC: `dlc_` (e.g., `dlc_1234567890`) - RCS: `rcs_` (e.g., `rcs_1234567890`)
- Campaign type (`campaign_type`, text): The type of campaign: - TOLL_FREE: Toll-free number campaigns - 10DLC: 10-digit long code campaigns for A2P messaging - RCS: Rich Communication Services campaigns. One of: `TOLL_FREE` (Toll free), `10DLC`, `RCS`.
- Page index (`page_index`, number, required): Zero-based index for pagination. At least 0.
- Page size (`page_size`, number): Number of conversations to return per page. At least 1. Default: `10`.
- Receiver (`receiver`, text): Receiver's phone number in E.164 format.
- Sender (`sender`, text): The sender identifier. Can be either: - A phone number in E.164 format - An RCS agent ID prefixed with 'agent_'

**Outputs**

- `data` (object): Response for list conversation.

**Example output**

```json
{
  "data": {
    "conversations": [
      {
        "brandId": "sample_brandId",
        "campaign": {
          "id": "sample_id",
          "type": "TOLL_FREE"
        },
        "contact": {
          "id": "sample_id",
          "phoneNumber": "Example"
        },
        "createdAt": "Example",
        "id": "sample_id",
        "notes": "Example",
        "sender": {
          "capabilities": {},
          "createdAt": "Example",
          "isSandbox": false,
          "phoneNumber": "Example",
          "updatedAt": "Example"
        },
        "updatedAt": "Example"
      }
    ],
    "count": 1,
    "hasMore": false
  }
}
```

### List Messages

List all messages with optional filtering and pagination. Results are sorted by creation date, newest first.

**Inputs**

- Page index (`page_index`, number): Pageindex. At least 0. Default: `0`.
- Page size (`page_size`, number): Pagesize. From 1 to 100. Default: `20`.
- Direction (`direction`, text): Direction. One of: `INBOUND`, `OUTBOUND`.
- Status (`status`, text): Status. One of: `PENDING`, `SENT`, `SEND_FAILED` (Send failed), `DELIVERED`, `DELIVERY_FAILED` (Delivery failed), `RECEIVED`, `READ`, `QUEUED`, `FALLBACK_SENT` (Fallback sent).
- Type (`type`, text): Type. One of: `SMS`, `MMS`, `RCS`.
- Method (`method`, text): Filter by the method used to send the message. One of: `API`, `SDK`, `OTHER`.
- From (`from`, text): Filter by sender phone number (E.164 format) or agent id.
- To (`to`, text): Filter by recipient phone number (E.164 format).
- Content (`content`, text): Search message content (partial match, case-insensitive).
- Date from (`date_from`, date and time): Filter messages created on or after this date (ISO 8601 format).
- Date to (`date_to`, date and time): Filter messages created on or before this date (ISO 8601 format).

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "blastId": "sample_blastId",
        "content": {},
        "cost": 1,
        "createdAt": "Example",
        "deliveredAt": "Example",
        "direction": "INBOUND",
        "error": {},
        "from": "Example",
        "id": "sample_id",
        "isTest": false,
        "method": "API",
        "numSegments": 1,
        "sentAt": "Example",
        "status": "PENDING",
        "to": "Example",
        "type": "SMS",
        "updatedAt": "Example"
      }
    ],
    "hasMore": false
  }
}
```

### List Phone Numbers

List all owned phone numbers with pagination. Results are sorted by creation date, newest first.

**Inputs**

- Page index (`page_index`, number): Pageindex. At least 0. Default: `0`.
- Page size (`page_size`, number): Pagesize. From 1 to 100. Default: `20`.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": "Example",
        "isSandbox": false,
        "mms": false,
        "number": "Example",
        "sms": false,
        "voice": false
      }
    ],
    "hasMore": false
  }
}
```

### List Scheduled Messages

List all scheduled messages with optional filtering and pagination. Results are sorted by creation date, newest first.

**Inputs**

- Page index (`page_index`, number): Pageindex. At least 0. Default: `0`.
- Page size (`page_size`, number): Pagesize. From 1 to 100. Default: `20`.
- Status (`status`, text): Status. One of: `ACTIVE`, `CANCELLED`, `FAILED`.
- Schedule type (`schedule_type`, text): Filter by schedule type. "MESSAGE" for individual messages, "BLAST" for bulk sends. One of: `MESSAGE`, `BLAST`.
- Content (`content`, text): Search scheduled message content (partial match, case-insensitive).

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "count": 1,
    "data": [
      {
        "createdAt": "Example",
        "endDate": "Example",
        "id": "sample_id",
        "payload": {},
        "recurrence": "Example",
        "sendAt": "Example",
        "status": "ACTIVE",
        "timezone": "Example",
        "updatedAt": "Example"
      }
    ],
    "hasMore": false
  }
}
```

### Send MMS Message

Send a MMS immediately or schedule it for future delivery.

**Inputs**

- From (`from`, text, required): Phone number you want to send the message from in E.164 format.
- Media URLS (`media_urls`, list, required): Media file URLs to send. See supported media types.
- Options multiple messages (`options_multiple_messages`, true/false): Allow splitting large content into multiple MMS messages if size limits are exceeded. If `false`, MMS over the limit will throw an error and won't be sent. Default: `false`.
- Options schedule (`options_schedule`, object): Define when and how your message should be sent.
- Options tracking (`options_tracking`, text): Enable tracking on sent messages. If not provided, messages are not tracked. You will not be able to react to these messages unless you provide the options.force field. `ID` - Append an explicit ID at the end of the message for tracking. Users will see this ID. `HIDDEN` - Invisible IDs are sent with messages for tracking. Will not be visible to users but will lead to slightly longer message lengths. One of: `ID`, `HIDDEN`.
- Options validate (`options_validate`, true/false): Set to true to check this message and throw an error when validation fails. If errors occur, the message is not sent. Otherwise message is sent after validation. Default: `false`.
- Text (`text`, text, required): Message text to accompany the media.
- To (`to`, text, required): Recipient's phone number in E.164 format.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "messageIds": [
      "sample_messageIds"
    ],
    "recipient": "Example",
    "segments": 1,
    "sender": "Example",
    "status": "Example",
    "totalCost": 1
  }
}
```

### Send SMS Message

Send a SMS message immediately or schedule it for future delivery.

**Inputs**

- From (`from`, text, required): Phone number that sends the message in E.164 format.
- Options schedule (`options_schedule`, object): Define when and how your message should be sent.
- Options tracking (`options_tracking`, text): Enable tracking on sent messages. If not provided, messages are not tracked. You will not be able to react to these messages unless you provide the options.force field. `ID` - Append an explicit ID at the end of the message for tracking. Users will see this ID. `HIDDEN` - Invisible IDs are sent with messages for tracking. Will not be visible to users but will lead to slightly longer message lengths. One of: `ID`, `HIDDEN`.
- Text (`text`, text, required): Message content.
- To (`to`, text, required): Recipient's phone number in E.164 format.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "messageId": "sample_messageId",
    "recipient": "Example",
    "segments": {
      "count": 1,
      "encoding": "gsm7"
    },
    "sender": "Example",
    "status": "Example",
    "totalCost": 1
  }
}
```

### Send text RCS message

Send a text message from a registered RCS agent.

**Inputs**

- RCS agent (`agent`, text, required): The sender RCS agent ID. It starts with agent_.
- Recipient phone number (`recipient`, text, required): Recipient phone number in E.164 format.
- Text (`text`, text, required): Text to send.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "messageId": "sample_messageId",
    "recipient": "Example",
    "segments": 1,
    "sender": "Example",
    "status": "Example",
    "totalCost": 1
  }
}
```

### Validate MMS Message

Validate MMS message content without sending it.

**Inputs**

- Media URLS (`media_urls`, list, required): URLs of media files in this message. See supported media types.
- Text (`text`, text): Text content that accompanies the media files.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "segments": {
      "count": 1,
      "unsupportedFiles": [
        "Example"
      ],
      "value": [
        {
          "files": [
            "Example"
          ],
          "size": 1,
          "text": "Example"
        }
      ]
    },
    "total": 1,
    "unit": 1
  }
}
```

### Validate SMS Message

Validate SMS message content without sending it.

**Inputs**

- Text (`text`, text, required): Message content.

**Outputs**

- `data` (object): The response from Pinnacle.

**Example output**

```json
{
  "data": {
    "isOverSegmentLimit": false,
    "segments": {
      "gsm7": {
        "totalBytes": 1,
        "unsupported": [
          "Example"
        ],
        "value": [
          "Example"
        ]
      },
      "utf16": {
        "totalBytes": 1,
        "value": [
          "Example"
        ]
      }
    },
    "total": {
      "gsm7": 1,
      "utf16": 1
    },
    "unit": 1
  }
}
```
