Contacts

Save a contact, replacing the one with the same phone

post/api/v1/workspaces/{workspaceId}/contacts

Request

  • Base URL: https://otprun.com
  • URL: https://otprun.com/api/v1/workspaces/{workspaceId}/contacts
  • Auth: HTTP bearer

Path parameters

workspaceIdinteger required

Request body

aliasesstring[] nullable

Other names, such as wife, mom, accountant

default_countrystring

Country calling code for local numbers, such as 7

namestring required
notestring
phonestring required

International number; local formats work with default_country

Response

OK

aliasesstring[] nullable required

Other names the contact goes by, such as wife or mom

idinteger required
namestring required
notestring required
on_whatsappboolean nullable required

null until the number was checked

phonestring required
saved_atstring date-time required
source'manual' | 'api' | 'whatsapp' | 'vcard' | 'csv' required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.