Me, members and teams
Who a key acts for, and the people and teams in the workspace to assign work to and mention. 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 me object
Who a key acts for, the workspace it works in, and the key itself. A good first request: it shows a key works.
objectstringAlways me.
memberobjectobjectstringAlways member.
idstringnamestringemailstringor nullNull for people who see only what's shared with them, except their own.
kindstringteam: sees what's shared with the workspace; guest: sees only what's shared with them.
role{id, name}Their role, e.g. Admin. Roles are the workspace's own; what someone can do comes from it.
joined_attimeurlstring
workspaceobjectidstringnamestringslugstringIts address: app.mavatu.com/<slug>.
time_zonestringIANA, e.g. Europe/London. Dates in the API are days in it.
currencystringISO 4217: the currency it works in.
work_daysarray of stringsor nullIts working week, e.g. monday to friday.
urlstring
keyobjectidstringnamestringscopesarray of stringsor nullread, or read and write.
expires_attimeor nullWhen it stops working; null for never.
{ "object": "me", "member": { "object": "member", "id": "mem_01jcm9s346q3d25vt4f5v37e3s", "name": "Imogen Hale", "email": "imogen@kettleandkite.co.uk", "kind": "team", "role": { "id": "owner", "name": "Owner" }, "joined_at": "2021-09-06T09:12:44Z", "url": "https://app.mavatu.com/kettle-kite/people/mem_01jcm9s346q3d25vt4f5v37e3s" }, "workspace": { "id": "acc_01jcx5208e2k8gv764kcrge00k", "name": "Kettle & Kite", "slug": "kettle-kite", "time_zone": "Europe/London", "currency": "GBP", "work_days": [ "monday", "tuesday", "wednesday", "thursday", "friday" ], "url": "https://app.mavatu.com/kettle-kite" }, "key": { "id": "key_01jcrswvk182vyz04sxwf6e996", "name": "Zapier", "scopes": [ "read", "write" ], "expires_at": "2027-11-07T10:30:00Z" }}Who the key acts for
GET/me
The person this API key acts for, the workspace it's in (with its time zone, currency and working week) and the key itself. A good first call to check a key works.
Returns
curl https://app.mavatu.com/api/v1/me \ -H "Authorization: Bearer $MAVATU_API_KEY"The member object
Someone in the workspace: on the team, or a guest who sees only what's shared with them. Assign work and mention people by their member ID.
objectstringAlways member.
idstringnamestringemailstringor nullNull for people who see only what's shared with them, except their own.
kindstringteam: sees what's shared with the workspace; guest: sees only what's shared with them.
role{id, name}Their role, e.g. Admin. Roles are the workspace's own; what someone can do comes from it.
joined_attimeurlstring
{ "object": "member", "id": "mem_01jc3e28jt97kb6cq643dzvmxx", "name": "Wren Abbott", "email": "wren@kettleandkite.co.uk", "kind": "team", "role": { "id": "rol_01jcdj8fssz5awsh8vhtpre95b", "name": "Designer" }, "joined_at": "2023-02-13T08:55:10Z", "url": "https://app.mavatu.com/kettle-kite/people/mem_01jc3e28jt97kb6cq643dzvmxx"}List members
GET/members
The workspace's people, by name: the team and guests. Use their IDs to assign work and mention them. People who see only what's shared with them see only those they work with.
Filters and paging
qstringPart of a name.
emailstringAn email address, exactly (any case).
kindstringteam or guest.
limitintegerHow many to return, 1 to 100. Default 25.
cursorstringnext_cursor from the previous page.
Returns
curl "https://app.mavatu.com/api/v1/members?q=wren" \ -H "Authorization: Bearer $MAVATU_API_KEY"Get a member
GET/members/{id}
One person in the workspace, by member ID, or me.
curl https://app.mavatu.com/api/v1/members/mem_01jc3e28jt97kb6cq643dzvmxx \ -H "Authorization: Bearer $MAVATU_API_KEY"The team object
A team in the workspace and the people in it. Projects are listed under a team.
objectstringAlways team.
idstringnamestringmembersarray of {id, name}or nullurlstring
{ "object": "team", "id": "grp_01jcnpzx45hy43kwjrp1xpa7z3", "name": "Studio", "members": [ { "id": "mem_01jcm9s346q3d25vt4f5v37e3s", "name": "Imogen Hale" }, { "id": "mem_01jc3e28jt97kb6cq643dzvmxx", "name": "Wren Abbott" }, { "id": "mem_01jcqkfbf5kznwj47tan9zt24m", "name": "Felix Marsh" } ], "url": "https://app.mavatu.com/kettle-kite/people/teams"}List teams
GET/teams
The workspace's teams, by name, with who's in each: projects are listed under them. People who see only what's shared with them see only their own teams.
Returns
curl https://app.mavatu.com/api/v1/teams \ -H "Authorization: Bearer $MAVATU_API_KEY"