---
updatedAt: 2026-06-15T14:41:25.000Z
agentTools:
  projectIndex: https://developers.dexatel.com/llms.txt
---

# Create Contact in given audience

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Contacts and Messaging",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.dexatel.com",
      "description": "Server base url"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/audiences/{id}/contacts": {
      "parameters": [
        {
          "$ref": "#/components/parameters/id"
        }
      ],
      "post": {
        "tags": [
          "Contact Management"
        ],
        "summary": "Create Contact in given audience",
        "operationId": "create_audience_contact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactPostRequestWrapperDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactPostResponseDto"
                }
              }
            }
          },
          "404": {
            "description": "<p> <strong>Bad Request:</strong> <table> <tr> <th>Code</th> <th>Message</th> <th>Description</th> </tr> <tr> <td>1353</td> <td>'data.number' is required</td> <td>If contacts array is provided, number is required</td> </tr> <tr> <td>1354</td> <td>'data.number' is invalid</td> <td>Should pass valid phone number. Number must be at most 45 characters</td> </tr> <tr> <td>1361</td> <td>'data.first_name' is too long</td> <td>First name must be at most 32 characters</td> </tr> <tr> <td>1362</td> <td>'data.last_name' is too long</td> <td>Last name must be at most 32 characters</td> </tr> <tr> <td>1363</td> <td>'data.custom1' name is too long</td> <td>Custom 1 must be at most 32 characters</td> </tr> <tr> <td>1364</td> <td>'data.custom2' name is too long</td> <td>Custom 2 must be at most 70 characters</td> </tr> </table>"
          },
          "409": {
            "description": "<p><strong>Conflict:</strong> <table> <tr> <th>Code</th> <th>Message</th> </tr> <tr> <td>1360</td> <td>Contact already exists</td> </tr> </table>"
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "id": {
        "in": "path",
        "name": "id",
        "required": true,
        "schema": {
          "type": "string",
          "description": "Unique identifier of the resource - {id}"
        }
      }
    },
    "schemas": {
      "ContactResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the contact"
          },
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the account"
          },
          "audience_id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique identifier of the audience"
          },
          "number": {
            "type": "string",
            "description": "Phone number of the contact"
          },
          "first_name": {
            "type": "string",
            "description": "First name of the contact"
          },
          "last_name": {
            "type": "string",
            "description": "Last name of the contact"
          },
          "custom1": {
            "type": "string",
            "description": "Custom short attribute of the contact"
          },
          "custom2": {
            "type": "string",
            "description": "Custom long attribute of the contact"
          }
        }
      },
      "ContactRequestDto": {
        "required": [
          "number"
        ],
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "maxLength": 45,
            "description": "Phone number of the contact as digits without spaces or special characters, beginning with the country dialing code"
          },
          "first_name": {
            "type": "string",
            "maxLength": 32,
            "description": "First name of the contact. Maximum 32 characters"
          },
          "last_name": {
            "type": "string",
            "maxLength": 32,
            "description": "Last name of the contact. Maximum 32 characters"
          },
          "custom1": {
            "type": "string",
            "maxLength": 32,
            "description": "Custom short attribute of the contact. Maximum 32 characters"
          },
          "custom2": {
            "type": "string",
            "maxLength": 70,
            "description": "Custom long attribute of the contact. Maximum 70 characters"
          }
        }
      },
      "ContactPostRequestWrapperDto": {
        "required": [
          "data"
        ],
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ContactRequestDto"
          }
        }
      },
      "ContactPostResponseDto": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ContactResponseDto"
              },
              {
                "type": "object",
                "properties": {
                  "create_date": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Creation date of the contact in UTC, formatted as yyyy-mm-dd hh:mm:ss"
                  },
                  "update_date": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Update date of the contact in UTC, formatted as yyyy-mm-dd hh:mm:ss"
                  },
                  "links": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LinksSelf"
                      },
                      {
                        "$ref": "#/components/schemas/LinksAccount"
                      },
                      {
                        "$ref": "#/components/schemas/LinksAudience"
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      },
      "LinksSelf": {
        "type": "object",
        "properties": {
          "self": {
            "type": "string",
            "description": "URL of the requested resource"
          }
        }
      },
      "LinksAccount": {
        "type": "object",
        "properties": {
          "account": {
            "type": "string",
            "description": "URL of the account"
          }
        }
      },
      "LinksAudience": {
        "type": "object",
        "properties": {
          "audience": {
            "type": "string",
            "description": "URL of the audience"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Dexatel-Key"
      }
    }
  }
}
```