Skip to content

Create an API key and authenticate

Create a key under Settings, Integrations, YoLeads API, then send it as a Bearer token in the Authorization header of every request.

3 min read · Updated November 29, 2026

The YoLeads API lets your own software work with your workspace: read campaigns and results, add leads to lists and campaigns, manage tags and more. Every call needs a key. A key belongs to one workspace, and every request acts inside it.

  • Before you start: you need the Admin or Owner role to create keys.
  • The full endpoint reference is at Developers.

#Create a key

  1. Open Settings, Integrations, then the YoLeads API tile

  2. Under API keys, choose Create API key

  3. Give it a Name you'll recognise

    For example CRM sync. Make one key per tool, so you can revoke one without breaking the rest.

  4. Under Access, choose Read-only, Member or Admin

    Pick the lowest level that does the job.

  5. Under Expires, choose Never, 30 days, 90 days or 1 year

  6. Choose Create key and copy it

    It starts with hl_live_ and is shown once. YoLeads keeps only a scrambled copy, so a lost key can't be recovered: make a new one and revoke the old one.

#Access levels

LevelWhat it can do
Read-onlyRead campaigns, results and A/B tests. Can't see leads or accounts, and can't change anything.
MemberRead leads and accounts, create and edit campaigns, add leads, make lists, set do-not-contact. Can't launch campaigns.
AdminAll of that, plus launch, pause and resume campaigns, manage LinkedIn accounts and manage webhooks.

A key is never an owner key: billing and deleting a workspace stay with people. A key also can never do more than the person who created it can do right now. Demote or remove that person and their keys shrink or stop straight away.

#Send the key

Put it in the Authorization header of every request, as Bearer followed by a space and the key. The base address is https://app.yoleads.io/api/v1. A request without a valid key gets a 401.

Check your key works
curl -s https://app.yoleads.io/api/v1/me \
  -H "Authorization: Bearer YOUR_API_KEY"

A good answer names your workspace, its plan and the key's access level.

#Revoke or rotate a key

  1. To rotate, create the new key first and switch your tool over to it

  2. Find the old key in the list, open Key actions and choose Revoke

  3. Confirm with Revoke key

    Anything still using it gets a 401 on its next request. Leads, lists and campaigns it created stay in your workspace.

#Agencies: organization keys

If you run client workspaces under an organization, an organization key (hl_org_…) can create workspaces, set account caps, invite people and mint workspace keys. It never reads or writes a workspace's leads, campaigns or inbox; for that, mint a workspace key. Create one under Settings, Organization, Organization keys. Details are in the developer reference. New to organizations? See Organizations and client workspaces.

I get a 401 with a key I just made.

Check the header reads Authorization: Bearer then the key, with nothing cut off. A key also stops working if it expired, was revoked, or its creator left the workspace.

I get a 403.

The key's access level is too low for that call, for example a Member key trying to launch. Create a key with a higher level.

Was this article helpful?