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

# Create a Contact

<Note>Not accepted at creation: `department`. Set it afterwards via [Update a Contact](/api-reference/contacts/update-contact), or map a column to it in a [CSV import](/api-reference/contacts/import-start) — the omission here is a quirk of the current field list on this endpoint, not a validation rule.</Note>

Validation: a `422` is raised unless at least one of `email`, `linkedin_url`, `first_name`, or `last_name` is present, or if `stage` isn't one of the three valid values.

### Auth

Requires a CRM manage [scope](/authentication#scopes) and an active organization on the token. Any `*:manage` scope qualifies — in practice `contacts:manage`, `deals:manage`, `companies:manage`, or `activities:manage`.

### Response

The created contact row — same shape as one element of the [list response](/api-reference/contacts/list-contacts) above, without the `accounts` embed. `target_at` (and `lead_at`/`contact_at` if `stage` warrants) are stamped to "now" so the funnel timeline stays continuous even for contacts created directly at a later stage.

### Errors

| Status | Cause                                                                    |
| ------ | ------------------------------------------------------------------------ |
| `400`  | No active organization on the token.                                     |
| `404`  | `account_id` doesn't resolve to an account in the caller's organization. |
| `422`  | Missing every identity field, or an invalid `stage`.                     |


## OpenAPI

````yaml POST /contacts
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /contacts:
    post:
      tags:
        - Contacts
      summary: Create Contact
      operationId: create_contact_route_contacts_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactCreateBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Create Contact Route Contacts Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContactCreateBody:
      properties:
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
          description: Contact's email address.
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
          description: Given name.
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
          description: Family name.
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: Job title.
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
          description: Phone number.
        company:
          anyOf:
            - type: string
            - type: 'null'
          title: Company
          description: Free-text company name for an unlinked contact (no account_id).
        company_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Domain
          description: Company's email domain, used for search/enrichment.
        linkedin_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Linkedin Url
          description: LinkedIn profile URL.
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
          description: Origin tag for this record; defaults to 'manual'.
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Free-text notes.
        owner_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner Id
          description: Logto user ID of the owning rep.
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Id
          description: >-
            Existing account to link this contact to; must belong to the
            caller's organization.
        stage:
          anyOf:
            - type: string
            - type: 'null'
          title: Stage
          description: >-
            Funnel stage to create at (target/lead/contact); defaults to
            'target' if omitted.
      type: object
      title: ContactCreateBody
      description: >-
        Create a contact/lead. Email is optional — a contact may be identified
        by

        a LinkedIn URL or just a name (e.g. a customer-intel target with no
        email yet).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````