Creates a contact under a client, or a temporary contact when no client is given.
With a ClientId the contact belongs to that client. Without one it is created as a temporary contact (IsTemporaryContact true) with no client and no location - the kind of contact an email from an unknown requester creates - and it can be used as the contact or a cc contact on a ticket that has no client. A LocationId needs a ClientId.
If another contact, active or temporary, already has the primary email address, nothing is created and the response is a 409 whose message carries that contact’s id: use it rather than retrying. This endpoint never updates an existing contact.
Autoritzacions
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.
Cos
Contact details.
Request body for creating a contact, under a client or, with no client, as a temporary contact.
Contact first name. Required. Maximum 150 characters.
1"Jane"
Contact last name. Required. Maximum 150 characters.
1"Doe"
Primary email address. Required. Maximum 200 characters.
1"jane.doe@contoso.com"
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.
Identifier of the client location the contact belongs to. Requires ClientId.
Additional (secondary) email addresses. Maximum 200 characters each.
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.
Mobile phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 100 characters.
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.
Office phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 25 characters.
Contact job title. Maximum 100 characters.
Contact department. Maximum 150 characters.
IANA time zone identifier for the contact (e.g. America/New_York). Maximum 50 characters.
Free-text description / notes for the contact. Maximum 2000 characters.
Resposta
OK
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 A contact belonging to a client. Timestamps are UTC.
null