For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGet API key
DocumentationIntegrationsAPI Reference
DocumentationIntegrationsAPI Reference
  • API Reference
      • GETList Contacts
      • POSTCreate Contact
      • GETGet Contact
      • DELDelete Contact
      • PATCHUpdate Contact
LogoLogo
HomeGet API key
API Referencecontacts

Get Contact

GET
https://api.agentphone.ai/v1/contacts/:contact_id
GET
/v1/contacts/:contact_id
1const url = 'https://api.agentphone.ai/v1/contacts/contact_id';
2const options = {
3 method: 'GET',
4 headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
5 body: '{}'
6};
7
8try {
9 const response = await fetch(url, options);
10 const data = await response.json();
11 console.log(data);
12} catch (error) {
13 console.error(error);
14}
1{
2 "id": "a3f47b9e-8c2d-4f1a-9b7e-2d5f3c6a1b8e",
3 "phoneNumber": "+14155552671",
4 "name": "Jessica Thompson",
5 "createdAt": "2024-01-15T09:30:00Z",
6 "updatedAt": "2024-01-15T09:30:00Z",
7 "email": "jessica.thompson@example.com",
8 "notes": "Met at the 2023 tech conference, interested in AI solutions."
9}
Get a single contact by ID.
Was this page helpful?
Previous

Delete Contact

Next
Built with

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

contact_idstringRequired

Response

Successful Response
idstring
phoneNumberstring
namestring
createdAtdatetime
updatedAtdatetime
emailstring or null
notesstring or null

Errors

422
Unprocessable Entity Error