---
title: "Create or update a contact"
method: POST
path: "/v1/contacts"
tags: ["Contacts"]
---

# Create or update a contact

`POST /v1/contacts`

## Request

- Base URL: `https://api.revdesk.com`
- URL: `https://api.revdesk.com/v1/contacts`
- Auth: HTTP bearer

Upserts a contact by phone number: creates it when no contact with that number exists in the organization, otherwise updates the existing contact's name/email/metadata. The `created` flag in the response tells you which happened (201 on create, 200 on update).

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `phone_number` string, required
  - `name` string
  - `email` string
  - `metadata` object
  - `sms_consent` boolean
  - `sms_consent_source` string

## Response `201`

Success

- object
  - `data` object, required
    - `id` string, required
    - `name` string, required
    - `phone_number` string, nullable, required
    - `email` string, nullable, required
    - `status` string, required
    - `source` string, required
    - `metadata` unknown, required
    - `created_at` string, required
    - `updated_at` string, required
    - `created` boolean, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict (incl. idempotency conflicts)
- `429`: Rate limited

---

[API](https://skmtc.dev/revdesk/apis/revdesk-v1-api.md) · [All operations](https://skmtc.dev/revdesk/apis/revdesk-v1-api/llms.txt) · [OpenAPI document](https://skmtc.dev/revdesk/apis/revdesk-v1-api/revisions/fcbd43530a48?raw)
