Documentation

Authentication

How to authenticate with the Enrich Layer API using bearer tokens.

Enrich Layer's API uses bearer tokens to authenticate users. Each user is assigned a randomly generated secret key under the API section in the dashboard.

The bearer token is injected in the Authorization header:

curl \
    -G \
    -H "Authorization: Bearer ${YOUR_API_KEY}" \
    'https://enrichlayer.com/api/v2/profile' \
    --data-urlencode 'profile_url=https://www.linkedin.com/in/williamhgates'
Shell
import requests

api_key = 'YOUR_API_KEY'
headers = {'Authorization': 'Bearer ' + api_key}
api_endpoint = 'https://enrichlayer.com/api/v2/profile'
linkedin_profile_url = 'https://www.linkedin.com/in/williamhgates'
response = requests.get(api_endpoint,
                        params={'profile_url': linkedin_profile_url},
                        headers=headers)
Python