Thumbnail
Interactive Text | Contacts Service | Get Contact

Returns the contact for the provided contactId.

Endpoint

GET /byon/contacts/v1/{contactId}

Request Querystring Parameters

Attributes Description
contactId required (path) A unique identifier based on the contactId (string) field.

Curl

curl -X GET "https://api.tyntec.com/byon/contacts/v1/26c99e4d97b44c9aa50bf7fb29801ebe" -H  "accept: application/json" -H  "apiKey: ds9SomeApiKeyl337"

Responses

Code: 200
The contact
Example Value

{
  "accountId": "string",
  "contactId": "string",
  "friendlyName": "string",
  "companyName": "string",
  "companyAddress": "string",
  "contactName": "string",
  "contactEmail": "string",
  "contactPhone": "string",
  "contactTitle": "string",
  "dateCreated": 0,
  "dateUpdated": 0,
  "timestampCreated": "string",
  "timestampUpdated": "string"
}

Example
Response body

{
  "accountId": "CPaasAccountName",
  "contactId": "26c99e4d97b44c9aa50bf7fb29801ebe",
  "friendlyName": "myFrienldyName",
  "companyName": "myCompanyName",
  "companyAddress": "myCompanyAddress",
  "contactName": "myContactName",
  "contactEmail": "mail@myemail.com",
  "contactPhone": "+49231123456789",
  "contactTitle": "myContactTitle",
  "dateCreated": 1521036849011,
  "dateUpdated": 1521036849011,
  "timestampCreated": "2018-03-14T14:14:09.011Z",
  "timestampUpdated": "2018-03-14T14:14:09.011Z"
}

Code: 401
Unauthorized

Code: 403
Forbidden

Code: 404
Contact not found

Code: 500
Something went wrong :-(Example Value{  "code": "string",  "message": "string",  "timestamp": 0}