Skip to content

Tags and custom fields

The workspace's own tags and fields for contacts, companies, deals, projects and tasks, and their IDs. Every request needs an API key; the examples read it from $MAVATU_API_KEY. How lists, dates, money and errors work is in the API guide.

The tag object

One of the workspace's tags. A tag is the same everywhere it's used: records show theirs as tags, and writes add and take them off with tags: {add, remove}, by ID or by name.

objectstring

Always tag.

idstring
namestring

Unique in the workspace, ignoring case.

colorstring
descriptionstring
record_typesarray of stringsor null

The kinds of record it's used on, e.g. contact, deal or task.

archivedboolean

No longer offered: it stays on records that have it, and can't be added again.

The tag object
{
"object": "tag",
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer",
"color": "amber",
"description": "Clients on a monthly retainer.",
"record_types": [
"contact",
"company",
"deal",
"project"
],
"archived": false
}

List tags

GET/tags

The tags records can have, by name, for one kind of record (record_type) or every kind the key's person can tag. Records show theirs as tags, and writes add and remove them with tags {add, remove}, by ID or name. Labels are the same tags under their old name.

Filters and paging

record_typestring

What they're for: contact, company, deal, project, task or conversation (Support's). Leave it out for every kind the key's person can tag.

Returns

A list of tags.

GET /tags
curl "https://app.mavatu.com/api/v1/tags?record_type=project" \
-H "Authorization: Bearer $MAVATU_API_KEY"

The label object

A tag, under its old name: the tags for contacts, companies and deals (leads share deals'). Set them with label_ids, or with tags.

objectstring

Always label.

idstring
namestring
colorstring
The label object
{
"object": "label",
"id": "tag_01jcw6vzskdenc8sp3804gva35",
"name": "Retainer",
"color": "amber"
}

List labels

GET/labels

The labels contacts, companies or deals can have, by name, with the IDs to set them with (label_ids).

Filters and paging

record_typestringrequired

What they're for: contact, company or deal.

Returns

A list of labels.

GET /labels
curl "https://app.mavatu.com/api/v1/labels?record_type=contact" \
-H "Authorization: Bearer $MAVATU_API_KEY"

The field object

One of the workspace's custom fields. Records keep their values in fields, keyed by the field's ID; a choice's value is its option's ID. Writes may key values by the field's name too.

objectstring

Always field.

idstring

What its values are keyed by in a record's fields.

namestring

Unique among its kind's fields, ignoring case: writes may key values by it too.

descriptionstring
typestring

What its values are, e.g. text, number, date, choice or multi_choice.

keystring

A stable key for it, when it has one (from an import); may be empty.

optionsarray of objector null

For choices: the options, whose IDs are the values.

idstring
namestring
colorstring
archivedboolean

No longer offered: still valid on records that have it.

required_to_winboolean

Deals: it must be filled in before a deal is won.

scopeobject

Where it's used.

allboolean

Used on every record of its kind.

idsarray of stringsor null

Otherwise, the pipelines (deals) or projects (tasks) it's used in, of those the key's person can see.

archivedboolean

No longer offered: its values stay on records, and can still be changed.

The field object
{
"object": "field",
"id": "fld_01jcnr5yhcf05g59s2s1kke59r",
"name": "How they found us",
"description": "Where the first conversation came from.",
"type": "choice",
"key": "",
"options": [
{
"id": "opt_01jcmz9j92v81e5128q6rw31fz",
"name": "Referral",
"color": "green",
"archived": false
},
{
"id": "opt_01jcg0x454yg4gfdexzr4yj2c4",
"name": "Website",
"color": "blue",
"archived": false
}
],
"required_to_win": false,
"scope": {
"all": true,
"ids": []
},
"archived": false
}

List custom fields

GET/fields

The workspace's own fields on contacts, companies, deals, projects or tasks, in order, with the IDs their values are keyed by (fields) and, for choices, the options' IDs. Only those the key's person can see: a field used only in some pipelines or projects is listed for people who can see one of them.

Filters and paging

record_typestringrequired

What they're for: contact, company, deal, project, task or time (time entries).

Returns

A list of fields.

GET /fields
curl "https://app.mavatu.com/api/v1/fields?record_type=deal" \
-H "Authorization: Bearer $MAVATU_API_KEY"