Skip to main content
This guide walks you through setting up API access and making your first requests.

1. Get your API key

1

Open settings

Go to Settings > API in your Leonar dashboard.
2

Create a key

Click Create API key, give it a name, and select the scopes you need. For this quickstart, select the read_only bundle.
3

Copy the key

Copy the key starting with leo_. You won’t be able to see it again.

2. Make your first request

3. Create a contact

4. Search contacts

Use the search endpoint for full-text search across contacts:

5. Read custom field definitions

Before writing custom_data, fetch the workspace definitions to discover valid keys:

6. Update custom fields safely

custom_data updates are merged into the existing object:
Send null to remove a non-required custom field key.

Next steps