Skip to content

Loading…

Retrieve a contact

Retrieve a contact belonging to your workspace.

GET/v1/leads/{lead_id}

Requires the leads:read scope

On this page

Requires leads:read, which exposes personal contact details. Keep this permission on trusted server integrations, not on a public website. Unknown IDs and contacts from another workspace both return 404.

Example request

curl "https://api.vestta.app/v1/leads/1" \
  -H "X-Api-Key: $VESTTA_API_KEY"

Authorization

  • X-Api-Keystringheaderrequired

    Your API key, AC_LIVE_<key_id>.<secret>. Authorization: ApiKey <key> is also accepted.

Path parameters

  • lead_idintegerrequired≥ 1

Response

200 Successful response.

Response fields

  • statusstring default: ok always ok
  • dataExternalLeadrequired

Errors

StatusWhen
401 UnauthorizedThe API key is missing, malformed, unknown, revoked or expired.
403 ForbiddenThe API key lacks the required scope.
404 Not FoundThe resource does not exist in this business.
409 ConflictDuplicate contact or idempotency key reused with a different payload.
422 Unprocessable ContentA path parameter, query parameter or body field is invalid.
500 Internal Server ErrorUnexpected server error while processing the request.

Error bodies and how to handle each case: Errors.