Get a single contact
GET
/contacts/{id}
const url = 'https://app.surveyrock.com/api/v1/contacts/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.surveyrock.com/api/v1/contacts/example \ --header 'Authorization: Bearer <token>'Get a single contact. The response carries the resource’s ETag, as the ETag header and as meta.etag; send it back as If-Match on an update.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”Contact details
Headers
Section titled “Headers”ETag
string
Example
"element:abc123:1790690123456789"The resource’s current version, as a strong validator. Opaque: send it back unchanged as If-Match. Also returned as meta.etag in the body, for a client that only sees the body.
Contact not found