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

# Create a contact

`POST /contacts`

Create a payout recipient contact. Returns existing contact if all identifying fields (name, email, contact, type) match an existing record.

## Request body

- object
  - `name` string, required
  - `email` string, email
  - `contact` string
  - `type` 'vendor' | 'customer' | 'employee' | 'self'
  - `reference_id` string
  - `notes` object

## Response `200`

Contact created

- XContact — RazorpayX payout recipient. Created before sending payouts.
  - `id` string — Contact ID (cont_*)
  - `entity` 'contact'
  - `name` string
  - `email` string, email
  - `contact` string — Phone number
  - `type` 'vendor' | 'customer' | 'employee' | 'self' — Built-in types only via API; custom types must be created on Dashboard first
  - `reference_id` string — External reference (must be unique per merchant)
  - `batch_id` string
  - `active` boolean
  - `notes` object
  - `created_at` integer — Unix timestamp

## Other responses

- `400` — Bad request. Invalid parameters or missing required fields.
- `401` — Authentication failed. Invalid or missing API key credentials.
- `429` — Rate limit exceeded. Implement exponential backoff with jitter before retrying.
- `500` — Internal server error.

---

[API](https://skmtc.net/razorpay/apis/razorpay-api.md) · [All operations](https://skmtc.net/razorpay/apis/razorpay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/razorpay/razorpay-api/versions/824ca9e6faef/schema)
