Skip to main content
POST
/
trigger
/
enrich
cURL
curl --request POST \
  --url https://public-api.lonescale.com/trigger/enrich \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "enrichment_type": [
    "email",
    "phone"
  ],
  "contacts": [
    {
      "firstname": "John",
      "lastname": "Doe",
      "email": "[email protected]",
      "job_title": "ceo",
      "linkedin_url": "https://www.linkedin.com/in/john-doe/",
      "domain": "acme.com",
      "company_name": "Acmeo",
      "custom": {
        "contact_id": "44479301"
      }
    }
  ],
  "webhook_url": "https://api.example.com/webhooks/enrichment",
  "custom": {
    "provider": "lonescale",
    "enrichment_type": "email and phone"
  }
}
'
{
  "message": "Bad request",
  "error": "Bad request",
  "statusCode": 400
}

Authorizations

x-api-key
string
header
required

Provide your API key in the x-api-key header.

Body

application/json
enrichment_type
enum<string>[]
required

Types of enrichment to perform.

Minimum array length: 1
Available options:
email,
phone
contacts
object[]
required

Contacts to enrich.

Minimum array length: 1
webhook_url
string<uri>
required

Webhook endpoint to receive enrichment results.

custom
object

Response

Enrichment successfully created