The person a dialled number belongs to, or a new lightweight contact (owner-enabled)
POST
/v1/workspace/dial-pad/contacts
const url = 'https://api.vocapable.com/v1/workspace/dial-pad/contacts';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"phone_e164":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/workspace/dial-pad/contacts \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "phone_e164": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkspaceDialPadRequest
object
phone_e164
required
Phone E164
string
Examplegenerated
{ "phone_e164": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkspaceDialPadContact
The person a dialled number belongs to: an existing one you can open, or a new lightweight contact you own (name it on the wrap-up).
object
Examplegenerated
{ "contact_id": "example", "organization_id": "example", "created": true, "display_name": "example", "timezone_known": true}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}