TombaTomba
Start free
  • Documentation
  • API reference
  • SDKs & CLI
  • AI & MCP
  • Integrations
  • Enterprise
  • Migration guides

Find, verify and enrich B2B contacts from public sources, in the app, your spreadsheet or through the API.

GDPR & CCPA

// docs

  • API changelog
  • Support options
  • Security

// platform

  • Dashboard
  • Pricing
  • API status

// resources

  • Help center
  • Product updates
  • TombaBot crawler

// company

  • Website
  • Contact us
  • Edit or remove your data

© 2021–2026 Tomba.io

  • Terms of service
  • Privacy policy
  • Cookie policy
  • Security policy
  • GDPR
  • CCPA
Information
Finder
Verifier
Enrichment
Phone
Domain
Email
Domain Suggestions
Reveal
Bulks
Scrape Campaigns
Leads
Lead Lists
Lead Attributes
    Retrieve Lead AttributesgetCreate a Lead AttributepostRetrieve a Single Lead AttributegetUpdate a Lead AttributeputDelete a Lead Attributedelete
Account
Keys
Flag
MCP Server
Schemas
Tomba
Tomba

Lead Attributes

Download schema

Define custom lead attributes


Retrieve Lead Attributes

GET
https://api.tomba.io/v1
/attributes
X-Tomba-Key (header)
+X-Tomba-Secret (header)

Returns up to 25 custom lead attributes of your workspace, or your own attributes when you aren't in a workspace. There's no pagination. Use an attribute's identifier as the key when you set its value in a lead's attributes.

Also accepts an OAuth 2.0 access token with the leads scope.

Retrieve Lead Attributes › Responses

Your lead attributes.

​object · required
GET/attributes
curl https://api.tomba.io/v1/attributes \ --header 'X-Tomba-Key: <api-key>' \ --header 'X-Tomba-Secret: <api-key>'
Example Responses
{ "data": { "attributes": [ { "id": 1, "user_id": 1042, "name": "Deal size", "identifier": "deal-size", "type": "number", "created_at": "2026-06-01T08:00:00Z", "updated_at": "2026-06-01T08:00:00Z" }, { "id": 2, "user_id": 1042, "name": "Last contact", "identifier": "last-contact", "type": "date", "created_at": "2026-06-15T10:30:00Z", "updated_at": "2026-06-15T10:30:00Z" } ] } }
json
application/json

Create a Lead Attribute

POST
https://api.tomba.io/v1
/attributes
X-Tomba-Key (header)
+X-Tomba-Secret (header)

Creates a custom lead attribute. Its identifier, the key for its values in a lead's attributes, is the name as a lowercase slug: Deal size becomes deal-size.

The request fails with 422 when you already have an attribute with the same identifier, or already have 29 attributes, the limit on every plan.

Also accepts an OAuth 2.0 access token with the leads scope.

Create a Lead Attribute › Request Body

name
​string · minLength: 2 · maxLength: 25 · required

Attribute name, 2 to 25 characters.

type
​string · enum · required

Value type.

Enum values:
string
date
number

Create a Lead Attribute › Responses

Attribute created.

​object · required
POST/attributes
curl https://api.tomba.io/v1/attributes \ --request POST \ --header 'Content-Type: application/json' \ --header 'X-Tomba-Key: <api-key>' \ --header 'X-Tomba-Secret: <api-key>' \ --data '{ "name": "Deal size", "type": "number" }'
Example Request Body
{ "name": "Deal size", "type": "number" }
json
application/json
Example Responses
{ "data": { "id": 3 } }
json
application/json

Retrieve a Single Lead Attribute

GET
https://api.tomba.io/v1
/attributes/{attributeId}
X-Tomba-Key (header)
+X-Tomba-Secret (header)

Confirms that an attribute exists in your workspace. Only id is filled in: the other fields come back as empty strings, 0, and zero timestamps. To read an attribute's name, identifier, and type, use GET /attributes.

Also accepts an OAuth 2.0 access token with the leads scope.

Retrieve a Single Lead Attribute › path Parameters

attributeId
​integer · int64 · required

The attribute's ID. A non-numeric ID fails with 422.

Retrieve a Single Lead Attribute › Responses

The attribute, with only id filled in.

​object · required
GET/attributes/{attributeId}
curl https://api.tomba.io/v1/attributes/:attributeId \ --header 'X-Tomba-Key: <api-key>' \ --header 'X-Tomba-Secret: <api-key>'
Example Responses
{ "data": { "attributes": { "id": 1, "user_id": 0, "name": "", "identifier": "", "type": "", "created_at": "0001-01-01T00:00:00Z", "updated_at": "0001-01-01T00:00:00Z" } } }
json
application/json

Update a Lead Attribute

PUT
https://api.tomba.io/v1
/attributes/{attributeId}
X-Tomba-Key (header)
+X-Tomba-Secret (header)

Renames an attribute and sets its type. Send both fields.

  • The identifier is rebuilt from the new name. Values already set on leads stay attached and appear under the new identifier.
  • A name whose identifier matches the attribute's current one fails with 422, so you can't change only the type.
  • Only attributes you created are changed. For a teammate's attribute, the request returns 200 without changing anything.

Also accepts an OAuth 2.0 access token with the leads scope.

Update a Lead Attribute › path Parameters

attributeId
​integer · int64 · required

The attribute's ID. A non-numeric ID fails with 422.

Update a Lead Attribute › Request Body

name
​string · minLength: 2 · maxLength: 25 · required

New attribute name, 2 to 25 characters.

type
​string · enum · required

Value type.

Enum values:
string
date
number

Update a Lead Attribute › Responses

Attribute updated.

OperationSuccess
​object · required

Result of an update or delete.

PUT/attributes/{attributeId}
curl https://api.tomba.io/v1/attributes/:attributeId \ --request PUT \ --header 'Content-Type: application/json' \ --header 'X-Tomba-Key: <api-key>' \ --header 'X-Tomba-Secret: <api-key>' \ --data '{ "name": "Deal value", "type": "number" }'
Example Request Body
{ "name": "Deal value", "type": "number" }
json
application/json
Example Responses
{ "data": { "status": true, "message": "The attribute has been updated successfully.", "code": 200 } }
json
application/json

Delete a Lead Attribute

DELETE
https://api.tomba.io/v1
/attributes/{attributeId}
X-Tomba-Key (header)
+X-Tomba-Secret (header)

Deletes an attribute of your workspace. Its values no longer appear on leads.

Also accepts an OAuth 2.0 access token with the leads scope.

Delete a Lead Attribute › path Parameters

attributeId
​integer · int64 · required

The attribute's ID. A non-numeric ID fails with 422.

Delete a Lead Attribute › Responses

Attribute deleted.

OperationSuccess
​object · required

Result of an update or delete.

DELETE/attributes/{attributeId}
curl https://api.tomba.io/v1/attributes/:attributeId \ --request DELETE \ --header 'X-Tomba-Key: <api-key>' \ --header 'X-Tomba-Secret: <api-key>'
Example Responses
{ "data": { "status": true, "message": "The attributes has been delete successfully.", "code": 200 } }
json
application/json

Lead ListsAccount