API Keys

API Keys allow external systems to interact with the platform via REST API. Location: Settings → DEVELOPER → API Keys.

API Name: LeadGen Public API

Server: https://sprootal.com/api/v1

Authentication: Bearer Token in the format lg_live_xxx (Live) or lg_test_xxx (Test)

API Docs

Click the API Docs button in the top right of the API Keys section — opens the full interactive documentation with all endpoints, request parameters and response examples. Also available at sprootal.com/docs.

Supported client libraries: curl · Ruby · Python · PHP · Go

Existing Key View

Each key in the list shows:

  • Name and type (live / test — color badge)
  • Token in the format lg_live_.... (partially hidden)
  • Scopes — permission tags (e.g. Read Contacts, Write Contacts, +19 more)

Creating an API Key

  1. Click Create API Key
  2. Enter a Name
  3. Select Type:
TypePurpose
LiveProduction integrations
TestDevelopment and testing
  1. Select Scopes (or click Select All)
  2. Click Create Key
The key is shown only once after creation — save it immediately.

Available Scopes

GroupScopes
Contacts & MessagingRead / Write Contacts · Read / Write Messages
OrganizationRead / Write Projects · Read / Write Lists · Read / Write Tags
Pipeline & TasksRead / Write Pipelines · Read / Write Tasks
AutomationsRead / Write Automations
Companies & AnalyticsRead / Write Companies · Read Analytics
SettingsRead / Write Sender Profiles · Manage Webhooks

Available API Resources

Contacts

MethodEndpointDescription
GET/contactsList contacts
GET/contacts/searchAdvanced search by tags, stages, text
POST/contactsCreate contact
GET/contacts/{id}Contact details (profile, tags, stage, stats)
PUT/contacts/{id}Update contact
DELETE/contacts/{id}Delete contact
GET/contacts/{id}/messagesContact messages

Messages

MethodEndpointDescription
GET/contacts/{id}/messagesContact messages
GET/messagesMessage list
DELETE/messages/{id}Delete message

Automations

MethodEndpointDescription
GET/automationsList automations
GET/automations/{id}Automation details
POST/automations/{id}/enrollAdd contacts to automation
POST/automations/{id}/unenrollRemove contacts from automation
PUT/automations/{id}/statusPause or resume automation

Sender Profiles

MethodEndpointDescription
GET/sender-profilesList accounts
GET/sender-profiles/{id}Account details

Webhooks

MethodEndpointDescription
GET/webhooksList webhooks
POST/webhooksCreate webhook
PUT/webhooks/{id}Update webhook
DELETE/webhooks/{id}Delete webhook

Projects

MethodEndpointDescription
GET/projectsList projects

Lists

MethodEndpointDescription
GET/listsList
GET/lists/{id}List details

Managing Keys

ActionDescription
Rotate KeyGenerate a new token — the old one stops working immediately
Revoke KeyPermanently delete the key

FAQ

How many API keys can I create?

There is no limit. It's recommended to create a separate key for each integration for easier access revocation.

What is the difference between Live and Test keys?

Test keys are for development — they work with the same data but let you safely test integrations. Live keys are for production.

What if a key is compromised?

Immediately use Rotate Key or Revoke Key via the ⋯ menu. The old token stops working as soon as it is rotated or revoked.