This endpoint returns the full details and all fields for the specified contact. The "Get Contacts by Identifier" endpoint can be used to get the ID of a contact.
Bearer <<YOUR_API_KEY_HERE>>
A link to this object.
An error message.
When applicable, this property value will be the field that generated the error.
When applicable, this property value will be helper text or a link to documentation to help you troubleshoot the error.
When applicable, this property value will be an error ID.
_19const client = require('@sendgrid/client');_19client.setApiKey(process.env.SENDGRID_API_KEY);_19_19const id = "ZGkrHSypTsudrGkmdpJJ";_19_19const request = {_19 url: `/v3/marketing/contacts/${id}`,_19 method: 'GET',_19 _19}_19_19client.request(request)_19 .then(([response, body]) => {_19 console.log(response.statusCode);_19 console.log(response.body);_19 })_19 .catch(error => {_19 console.error(error);_19 });