Skip to content

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.

objectstring

Always me.

memberobject
objectstring

Always member.

idstring
namestring
emailstringor null

Null for people who see only what's shared with them, except their own.

kindstring

team: 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_attime
urlstring
workspaceobject
idstring
namestring
slugstring

Its address: app.mavatu.com/<slug>.

time_zonestring

IANA, e.g. Europe/London. Dates in the API are days in it.

currencystring

ISO 4217: the currency it works in.

work_daysarray of stringsor null

Its working week, e.g. monday to friday.

urlstring
keyobject
idstring
namestring
scopesarray of stringsor null

read, or read and write.

expires_attimeor null

When it stops working; null for never.

The me object
{
"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

The me.

GET /me
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.

objectstring

Always member.

idstring
namestring
emailstringor null

Null for people who see only what's shared with them, except their own.

kindstring

team: 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_attime
urlstring
The member object
{
"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

qstring

Part of a name.

emailstring

An email address, exactly (any case).

kindstring

team or guest.

limitinteger

How many to return, 1 to 100. Default 25.

cursorstring

next_cursor from the previous page.

Returns

A list of members.

GET /members
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.

Path

idstringrequired

The member's ID.

Returns

The member.

GET /members/{id}
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.

objectstring

Always team.

idstring
namestring
membersarray of {id, name}or null
urlstring
The team object
{
"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.

GET /teams
curl https://app.mavatu.com/api/v1/teams \
-H "Authorization: Bearer $MAVATU_API_KEY"