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

# Create person

> Creates a new person in your CRM. Set custom attribute values with `custom_attributes`. A key that is not an active custom attribute returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`, and a value of the wrong type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`.

> [!NOTE]
>
> **Required scope:** `CRM_WRITE`

## Body fields

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `name` | string | no | | First name |
| `last_name` | string | no | | Last name |
| `job_title` | string | no | | Job title |
| `website` | string | no | | Website URL |
| `address` | string | no | | Address |
| `numbers` | array | **yes** | | Phone numbers in E.164 format. At least one number |
| `emails` | array | no | | Email addresses |
| `company_id` | string | no | | Associated company ID |
| `allow_duplicate_number` | boolean | no | `false` | Allow creating the person even if one or more phone numbers are already assigned to another person |
| `custom_attributes` | object | no | | Values of your custom fields, keyed by field key |

At least one of `name` or `last_name` is required. A request without `numbers`, or with an empty list, fails with `400 MISSING_FIELD`.

## Associations

Pass a `company_id` to link the person to an existing company. The company must exist or the request returns an error.

## Duplicate phone numbers

By default, creating a person with phone numbers that already belong to another person in your team returns a **409 Conflict** error. The error response includes the IDs of the existing people so you can update them instead.

To create the person anyway, set `allow_duplicate_number` to `true`.

```json theme={null}
{
  "name": "John",
  "numbers": ["+33612345678"],
  "allow_duplicate_number": true
}
```

To find the existing person by phone number, use [Search people](https://help.withallo.com/en/v2/api-reference/crm/search-people.md) with the `phone_number` filter.

## Custom attributes

`custom_attributes` sets the values of your [custom fields](https://help.withallo.com/en/v2/api-reference/crm/create-attribute.md). Create the field first, then use its `key` here.

| Attribute type | Accepted value |
| - | - |
| `TEXT` | A string |
| `NUMBER` | A finite JSON number. Strings are rejected. Read back as a decimal, so `180` is returned as `180.0` |
| `BOOLEAN` | A JSON boolean |
| `DATE` | `YYYY-MM-DD` or an ISO datetime. Stored as a date and returned as `YYYY-MM-DD` |
| `DROPDOWN` | An option key or label, case-insensitive. Always returned as the option key |

* Send `null` for a key to clear its value.
* Keys you leave out are not changed. `{}`, or leaving out `custom_attributes`, changes nothing.
* An unknown or archived key returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`. A value of the wrong type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`. In both cases `param` is `custom_attributes.<key>`.
* The whole request is validated before anything is written, so a rejected request creates nothing.
* The response always includes `custom_attributes`, `{}` when the person has none. Archived attributes and empty values are left out.
* Values are also synced to your connected CRMs that create contacts. A value on an attribute that is synced from a CRM can be overwritten by the next CRM sync.

### Example

The `budget` number is read back as a decimal.

```json theme={null}
{
  "name": "John",
  "numbers": ["+33612345678"],
  "custom_attributes": {
    "lead_source": "Webinar",
    "budget": 5000
  }
}
```

```json theme={null}
{
  "data": {
    "id": "per-abc123",
    "name": "John",
    "numbers": ["+33612345678"],
    "custom_attributes": {
      "lead_source": "Webinar",
      "budget": 5000.0
    }
  }
}
```


## OpenAPI

````yaml POST /v2/api/crm/people
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Fax
    description: >-
      Send a PDF as a fax from an Allo line with fax turned on. Sent and
      received faxes appear in conversation items.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
  - name: Notes
    description: >-
      Internal team notes on conversations and CRM people, with @mention
      support. Notes are never visible to the contact.
  - name: Threads
    description: >-
      Team discussion threads attached to a conversation item (call, SMS, or
      conversation note). One thread per item.
  - name: AI Receptionist
    description: >-
      Read and write the AI receptionist configuration of a phone line: business
      details, voice, prompt, capabilities, business hours, transfer rules,
      scheduling calendars and knowledge sources.
  - name: Inboxes
    description: >-
      Personal inboxes: saved views of one or more lines, optionally narrowed to
      phone-menu options, with their own filters and notification setting.
paths:
  /v2/api/crm/people:
    post:
      tags:
        - CRM
      summary: Create person
      description: >-
        Creates a new person in your CRM. Set custom attribute values with
        `custom_attributes`. A key that is not an active custom attribute
        returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`, and a value of the wrong
        type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`.
      operationId: createPerson
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePersonRequest'
            example:
              name: John
              last_name: Doe
              job_title: CEO
              website: https://example.com
              address: 123 Main St
              numbers:
                - '+33612345678'
              emails:
                - john@example.com
              company_id: com-xyz789
              custom_attributes:
                lead_source: Webinar
                budget: 5000
      responses:
        '200':
          description: Person created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CrmPerson'
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '409':
          $ref: '#/components/responses/ApiConflict'
        '422':
          $ref: '#/components/responses/ApiValidationError'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreatePersonRequest:
      type: object
      description: Request body for creating a person
      required:
        - numbers
      properties:
        name:
          type: string
          nullable: true
          description: First name
          example: John
        last_name:
          type: string
          nullable: true
          description: Last name
          example: Doe
        job_title:
          type: string
          nullable: true
          description: Job title
          example: CEO
        website:
          type: string
          nullable: true
          description: Website URL
          example: https://example.com
        address:
          type: string
          nullable: true
          description: Postal address
          example: 123 Main St
        numbers:
          type: array
          items:
            type: string
          description: Phone numbers in E.164 format. At least one number is required.
          minItems: 1
          example:
            - '+33612345678'
        emails:
          type: array
          nullable: true
          items:
            type: string
          description: Email addresses
          example:
            - john@example.com
        company_id:
          type: string
          nullable: true
          description: ID of the company to associate with
          example: com-xyz789
        allow_duplicate_number:
          type: boolean
          description: >-
            When true, allows creating a person even if the phone numbers are
            already assigned to another person. Defaults to false.
          default: false
        custom_attributes:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            Values for the person's custom attributes, keyed by attribute key.
            `TEXT` takes a string, `NUMBER` a finite JSON number (numeric
            strings are rejected), `BOOLEAN` a JSON boolean, `DATE` a
            `YYYY-MM-DD` string or ISO datetime, and `DROPDOWN` an option key or
            label (case-insensitive). Send `null` to clear a value; keys you
            omit are left untouched, and `{}` or omitting the field changes
            nothing. An unknown or archived key, or a value of the wrong type,
            rejects the whole request with `CUSTOM_ATTRIBUTE_KEY_UNKNOWN` or
            `CUSTOM_ATTRIBUTE_VALUE_INVALID`.
          example:
            lead_source: Webinar
            budget: 5000
    CrmPerson:
      type: object
      description: A person in the CRM
      properties:
        id:
          type: string
          description: Unique person identifier
          example: per-abc123
        name:
          type: string
          nullable: true
          description: First name
          example: John
        last_name:
          type: string
          nullable: true
          description: Last name
          example: Doe
        job_title:
          type: string
          nullable: true
          description: Job title
          example: CEO
        website:
          type: string
          nullable: true
          description: Website URL
          example: https://example.com
        address:
          type: string
          nullable: true
          description: Postal address
          example: 123 Main St
        numbers:
          type: array
          items:
            type: string
          description: Phone numbers in E.164 format
          example:
            - '+33612345678'
        emails:
          type: array
          items:
            type: string
          description: Email addresses
          example:
            - john@example.com
        company:
          $ref: '#/components/schemas/CrmCompanyRef'
        interactions:
          type: integer
          description: Total number of interactions (calls + messages)
          example: 5
        last_activity_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp of the last activity
          example: '2026-04-28T10:30:00'
        created_at:
          type: string
          format: date-time
          description: When the person was created
          example: '2026-04-01T09:00:00'
        updated_at:
          type: string
          format: date-time
          description: When the person was last updated
          example: '2026-04-28T10:30:00'
        custom_attributes:
          type: object
          additionalProperties: true
          description: >-
            Values of the person's custom attributes, keyed by attribute key.
            Always present, `{}` when there are none. Archived attributes and
            empty values are omitted. `NUMBER` values are decimals (`180` is
            returned as `180.0`), `DATE` values are `YYYY-MM-DD` and `DROPDOWN`
            values are the option key. Create the attributes first with `POST
            /v2/api/crm/attributes`.
          example:
            lead_source: Webinar
            budget: 5000
    CrmCompanyRef:
      type: object
      nullable: true
      description: Embedded company reference
      properties:
        id:
          type: string
          description: Company ID
          example: com-xyz789
        name:
          type: string
          description: Company name
          example: Acme Corp
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  responses:
    ApiValidationError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiConflict:
      description: Conflict with existing resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````

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