ImportOS · Docs
API reference

POST /v1/contacts

Create a contact

Create a contact

Creates a contact with source "api". Supports Idempotency-Key. Requires scope write:deals.

  • Authentication: header Authorization: Bearer rv_live_... (API keys and scopes)
  • Required scope: write:deals
Descriptions of the operation, parameters and fields come from the OpenAPI specification (openapi.json).

Parameters

FieldInTypeRequiredDescription
idempotency-keyheaderstringnoMakes a retry of this POST safe for 24 hours: the same key and body returns the stored response (Idempotent-Replay: true).

Request body

FieldTypeRequiredDescription
type"lead" | "client" | "partner"no
fullNamestringyes
phonesstring[]no
emailsstring[]no
telegramIdstring | number | nullno
telegramUsernamestring | nullno
viberIdstring | nullno
ownerUserIdstring | null (uuid)no
tagsstring[]no
consentMarketingbooleanno
preferredChannel"telegram" | "viber" | "email" | "sms" | "webhook" | "in_app" | nullno
locale"uk" | "pl" | "en"no
notesstring | nullno
utmobject | nullno
allowDuplicatebooleannoCreate even if a contact with the same phone/email/Telegram exists (otherwise 409 with duplicate_ids).

Responses

201

The created contact.

application/json · Schema: Contact

FieldTypeRequiredDescription
idstring (uuid)yes
type"lead" | "client" | "partner"yes
fullNamestringyes
phonesstring[]yesE.164.
emailsstring[]yes
telegramIdstring | nullyes
telegramUsernamestring | nullyes
viberIdstring | nullyes
source"site" | "telegram" | "instagram" | "referral" | "ads" | "manual" | "viber" | "widget" | "extension" | "api" | "import" | "marketplace"yes
ownerUserIdstring | null (uuid)yes
tagsstring[]yes
consentMarketingbooleanyes
preferredChannel"telegram" | "viber" | "email" | "sms" | "webhook" | "in_app" | nullyes
locale"uk" | "pl" | "en"yes
notesstring | nullyes
createdAtstringyesISO 8601 date-time (UTC).
updatedAtstringyesISO 8601 date-time (UTC).

400

Invalid request parameters or body (code validation_error).

application/problem+json · Schema: Problem

401

Missing, malformed, unknown, revoked or expired API key (code unauthorized).

application/problem+json · Schema: Problem

403

The API key lacks the scope required by this endpoint (code insufficient_scope).

application/problem+json · Schema: Problem

409

Conflict: duplicate contact (duplicate_ids), a request with this Idempotency-Key is still being processed, or the stage transition is blocked (missing[]).

application/problem+json · Schema: Problem

422

Well-formed but not acceptable data (unprocessable_input), or Idempotency-Key reused with a different request.

application/problem+json · Schema: Problem

429

Rate limit exceeded for the tenant plan (code rate_limited). Wait Retry-After seconds.

application/problem+json · Schema: Problem

On this page