Skip to main content
POST
Creates a contact under a client, or a temporary contact when no client is given.

Authorizations

X-API-Key
string
header
required

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

Body

Contact details.

Request body for creating a contact, under a client or, with no client, as a temporary contact.

FirstName
string
required

Contact first name. Required. Maximum 150 characters.

Minimum string length: 1
Example:

"Jane"

LastName
string
required

Contact last name. Required. Maximum 150 characters.

Minimum string length: 1
Example:

"Doe"

PrimaryEmail
string
required

Primary email address. Required. Maximum 200 characters.

Minimum string length: 1
Example:

"jane.doe@contoso.com"

ClientId
integer<int64> | null

Identifier of the client the contact belongs to. Optional. When omitted the contact is created as a temporary contact (IsTemporaryContact true) with no client, the way an email from an unknown requester creates one; a temporary contact can be the contact or a cc contact on a ticket that has no client.

LocationId
integer<int64> | null

Identifier of the client location the contact belongs to. Requires ClientId.

SecondaryEmail
string[] | null

Additional (secondary) email addresses. Maximum 200 characters each.

MobilePhone
string

Mobile phone number, as dialled within its country, e.g. 021 123 4567 for NZ; an international +64 21 123 4567 is accepted too. A number sent without its leading 0 (21 123 4567) is stored with it. Maximum 20 characters.

MobilePhoneCountryCode
string

Mobile phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 100 characters.

OfficePhone
string

Office phone number, as dialled within its country, e.g. 021 123 4567 for NZ; an international +64 21 123 4567 is accepted too. A number sent without its leading 0 (21 123 4567) is stored with it. Maximum 20 characters.

OfficePhoneCountryCode
string

Office phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 25 characters.

JobTitle
string

Contact job title. Maximum 100 characters.

Department
string

Contact department. Maximum 150 characters.

TimeZone
string

IANA time zone identifier for the contact (e.g. America/New_York). Maximum 50 characters.

Description
string

Free-text description / notes for the contact. Maximum 2000 characters.

Response

OK

StatusCode
enum<integer>
Available options:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

A contact belonging to a client. Timestamps are UTC.

DataContext
object | null
Example:

null

Notifications
object[]