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.
objectstringAlways tag.
idstringnamestringUnique in the workspace, ignoring case.
colorstringdescriptionstringrecord_typesarray of stringsor nullThe kinds of record it's used on, e.g. contact, deal or task.
archivedbooleanNo longer offered: it stays on records that have it, and can't be added again.
{ "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_typestringWhat 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
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.
objectstringAlways label.
idstringnamestringcolorstring
{ "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_typestringrequiredWhat they're for: contact, company or deal.
Returns
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.
objectstringAlways field.
idstringWhat its values are keyed by in a record's fields.
namestringUnique among its kind's fields, ignoring case: writes may key values by it too.
descriptionstringtypestringWhat its values are, e.g. text, number, date, choice or multi_choice.
keystringA stable key for it, when it has one (from an import); may be empty.
optionsarray of objector nullFor choices: the options, whose IDs are the values.
idstringnamestringcolorstringarchivedbooleanNo longer offered: still valid on records that have it.
required_to_winbooleanDeals: it must be filled in before a deal is won.
scopeobjectWhere it's used.
allbooleanUsed on every record of its kind.
idsarray of stringsor nullOtherwise, the pipelines (deals) or projects (tasks) it's used in, of those the key's person can see.
archivedbooleanNo longer offered: its values stay on records, and can still be changed.
{ "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_typestringrequiredWhat they're for: contact, company, deal, project, task or time (time entries).
Returns
curl "https://app.mavatu.com/api/v1/fields?record_type=deal" \ -H "Authorization: Bearer $MAVATU_API_KEY"