API specification
Push leads into SuperSquido from your own systems.
Authentication
Every request carries your organization API key in the X-API-Key header. A missing, wrong or regenerated key is refused with 401 "Invalid API key". Leads always go into the organization of the key.
Import leads — POST /api/v1/leads/import
The body is a JSON array of companies, each with its employees, tags and custom fields — the same format as a JSON file upload. Valid companies are queued as one import job; the answer is 202 with the job id and the errors of the records that were not accepted.
- Not an array, an empty array, or no importable company → 400 and nothing is queued.
- Body up to 10 MB → otherwise 413.
- Optional Idempotency-Key header: repeating a key returns the original answer and queues nothing new.
- Rate limit: 60 requests per minute per API key → otherwise 429 with Retry-After.
Company fields
| Field | Type | Required | Notes |
|---|---|---|---|
company_name | string | No | The company name. Required when any other company field is set; leave it out to import employees without a company. |
location | string | No | Free text, for example "Berlin, Germany". |
industry | string | No | Free text. |
website | string | No | Company website, kept as sent. |
linkedin | string | No | Company LinkedIn page, kept as sent. |
size | string | No | Free text, for example "250" — a string, not a number. |
tags | string[] | No | Company tags. |
custom_fields | object (string → string) | No | Your own keys; every value is a string. |
employees | Employee[] | Yes | At least one valid employee, otherwise the company is not imported. |
Employee fields
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Full name; must not be empty. |
email | string | Yes | A valid email address. It identifies the employee when you import again. |
title | string | No | Job title. |
linkedin | string | No | Personal LinkedIn profile, kept as sent. Aimfox delivery needs it. |
tags | string[] | No | Employee tags. |
custom_fields | object (string → string) | No | Your own keys; every value is a string. |
Rules
- Keys are strict: an unknown or misspelled key is an error naming it, and that record is not imported. Use the field names exactly as in the tables.
- Values are strings only: numbers, booleans, null and nested objects fail. Write "size": "250", not "size": 250. Tags and custom field values are strings too.
- Partial import: an invalid employee is skipped and reported; a company without a valid employee is skipped too. Everything valid is imported.
- URLs are not validated: website and linkedin are stored as sent.
- Tags are case-insensitive and duplicates are removed: "Engineering" and "engineering" become one tag.
- Re-import: a company is matched by company_name and an employee by email, ignoring upper and lower case. New employees are added; for existing records the tags and custom_fields are replaced, and other fields stay unchanged. An email that already belongs to another company is not imported and is reported.
- Plan limits (leads per upload and leads in the database) are applied by the import job: the first leads of the request are imported, the rest are reported in GET /api/v1/leads/import/{jobId}.
Example with every field
Acme Ltd uses every company field and has two employees; the second record has no company, only employees.
curl -X POST "<API base URL>/api/v1/leads/import" \
-H "X-API-Key: <your organization API key>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: import-2026-10-24-1" \
-d '[
{
"company_name": "Acme Ltd",
"location": "Berlin, Germany",
"industry": "Manufacturing",
"website": "https://acme.example",
"linkedin": "https://www.linkedin.com/company/acme-example/",
"size": "250",
"tags": [
"prospect",
"dach"
],
"custom_fields": {
"crm_id": "HS-998",
"source": "trade-fair-2026"
},
"employees": [
{
"name": "Anna Weber",
"email": "[email protected]",
"title": "Head of Procurement",
"linkedin": "https://www.linkedin.com/in/anna-weber-example/",
"tags": [
"decision-maker"
],
"custom_fields": {
"region": "DACH",
"language": "de"
}
},
{
"name": "Tom Becker",
"email": "[email protected]",
"title": "CFO",
"tags": [
"finance"
]
}
]
},
{
"employees": [
{
"name": "Maria Lopez",
"email": "[email protected]",
"title": "Independent consultant",
"linkedin": "https://www.linkedin.com/in/maria-lopez-example/",
"tags": [
"freelancer"
],
"custom_fields": {
"source": "webinar"
}
}
]
}
]'Response — 202 Accepted
The job id, the status "queued" and the records that will not be imported. Here the second employee of Acme Ltd was sent without an email:
{
"data": {
"jobId": "jb7k2",
"status": "queued",
"errors": [
{
"level": "employee",
"position": 1,
"company": "Acme Ltd",
"employee": 2,
"fields": [
"email"
],
"reason": "required data missing (email)",
"message": "Employee #2 in company Acme Ltd was not imported: required data missing (email)"
}
]
}
}JSON Schema
The request body as a JSON Schema (draft 2020-12). Use it to validate your data before you send it.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SuperSquido Lead Import",
"description": "A JSON array of one or more companies, each with its employees. Keys are strict and every value is a string.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"company_name": {
"type": "string",
"description": "Required when any other company field is set. Leave it out to import employees without a company."
},
"location": {
"type": "string"
},
"industry": {
"type": "string"
},
"website": {
"type": "string"
},
"linkedin": {
"type": "string"
},
"size": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"custom_fields": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"employees": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "\\S"
},
"email": {
"type": "string",
"pattern": "\\S",
"format": "email"
},
"title": {
"type": "string"
},
"linkedin": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"custom_fields": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"name",
"email"
],
"additionalProperties": false
}
}
},
"required": [
"employees"
],
"additionalProperties": false,
"if": {
"anyOf": [
{
"required": [
"location"
]
},
{
"required": [
"industry"
]
},
{
"required": [
"website"
]
},
{
"required": [
"linkedin"
]
},
{
"required": [
"size"
]
},
{
"required": [
"tags"
]
},
{
"required": [
"custom_fields"
]
}
]
},
"then": {
"required": [
"company_name"
],
"properties": {
"company_name": {
"type": "string",
"pattern": "\\S"
}
}
}
}
}Check an import — GET /api/v1/leads/import/{jobId}
Returns the job status (queued, running, done or failed), the number of rows, the rows processed so far and the per-record errors. An unknown job id answers 404.
{
"data": {
"jobId": "jb7k2",
"status": "done",
"totalRows": 3,
"processedRows": 2,
"errors": [
{
"level": "employee",
"position": 2,
"company": "#2",
"employee": 1,
"fields": [],
"reason": "limit reached (max 1000 leads in the database)",
"message": "Employee #1 in company #2 was not imported: limit reached (max 1000 leads in the database)"
}
]
}
}Assign tags by email — POST /api/v1/leads/tags/by-email
Adds employee tags to the lead of your organization whose email matches, ignoring upper and lower case. Use it from your website backend or landing page, for example to tag a lead who registers or visits your pricing page.
curl -X POST "<API base URL>/api/v1/leads/tags/by-email" \
-H "X-API-Key: <your organization API key>" \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "tags": ["registered", "visited-pricing"] }'Assign tags by Lead ID — POST /api/v1/leads/tags/by-id
The same, for one lead by its Lead ID — the 5-character ID shown with Copy in the lead panel on the Leads page.
curl -X POST "<API base URL>/api/v1/leads/tags/by-id" \
-H "X-API-Key: <your organization API key>" \
-H "Content-Type: application/json" \
-d '{ "leadId": "k3x9a", "tags": ["registered"] }'- Only employee tags; tags are only added, never removed. Upper and lower case count as the same tag, and repeats are dropped.
- 1 to 10 tags per call, each up to 25 characters → otherwise 400 naming the tag.
- No lead with that email or Lead ID → 404 and no lead is created; a lead of another organization answers the same 404.
- A locked lead → 409 "Lead is locked"; a view-only organization → 403.
- The answer is 200 with the Lead ID and the lead's employee tags after the change.
- Rate limit: 60 requests per minute per API key, separate from the import limit → otherwise 429 with Retry-After.
Errors
Errors use one JSON envelope: statusCode, code, message, requestId and, for validation errors, errors[] with the field and the reason.