Skip to content

Team

List, invite and deactivate team members.

Invite team member

POST/v1/team/invites/
team:writeIdempotency-Key required

Parameters

NameInTypeNotes
Idempotency-Keyrequiredheaderstring (uuid)UUID4 identifying one intended write. Reuse it only when retrying that same write.

Request body

FieldTypeNotes
emailrequiredstring (email)max length 254
member_typerequiredstringone of SETTER, CLOSER, MANAGER, FINANCE, ASSISTANT
Response fields (201)
FieldTypeNotes
member_idstringread-only
statusstringread-only

Responses

  • 201Success
  • 400The request is invalid.
  • 401Authentication is missing, invalid, or revoked.
  • 403The authenticated identity lacks the required scope or capability.
  • 404The resource is unavailable or not visible to this organization.
  • 409The write conflicts with current state or an identical request is still running.
  • 422The write contains fields outside its closed input schema.
  • 429The request-rate budget is exhausted.

Example request

curl
curl -X POST "https://api.themochi.app/v1/team/invites/" \
  -H "Authorization: Bearer $MOCHI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen | tr A-Z a-z)" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","member_type":"SETTER"}'

List team members

GET/v1/team/members/
team:read
Response fields (200)
FieldTypeNotes
datarequiredobject[]—
data[].accepted_atstring (date-time) | nullread-only
data[].emailstringread-only
data[].first_namestringread-only
data[].is_activebooleanread-only
data[].languagestringread-only
data[].last_namestringread-only
data[].member_idstringread-only
data[].member_typestringread-only
next_cursorrequiredstring | null—

Responses

  • 200Success
  • 400The request is invalid.
  • 401Authentication is missing, invalid, or revoked.
  • 403The authenticated identity lacks the required scope or capability.
  • 404The resource is unavailable or not visible to this organization.
  • 429The request-rate budget is exhausted.

Example request

curl
curl -X GET "https://api.themochi.app/v1/team/members/" \
  -H "Authorization: Bearer $MOCHI_API_KEY"

Deactivate team member

POST/v1/team/members/{member_id}/deactivate/
team:writeIdempotency-Key required

Parameters

NameInTypeNotes
member_idrequiredpathinteger—
Idempotency-Keyrequiredheaderstring (uuid)UUID4 identifying one intended write. Reuse it only when retrying that same write.
Response fields (201)
FieldTypeNotes
member_idstringread-only
statusstringread-only

Responses

  • 201Success
  • 400The request is invalid.
  • 401Authentication is missing, invalid, or revoked.
  • 403The authenticated identity lacks the required scope or capability.
  • 404The resource is unavailable or not visible to this organization.
  • 409The write conflicts with current state or an identical request is still running.
  • 422The write contains fields outside its closed input schema.
  • 429The request-rate budget is exhausted.

Example request

curl
curl -X POST "https://api.themochi.app/v1/team/members/<member_id>/deactivate/" \
  -H "Authorization: Bearer $MOCHI_API_KEY" \
  -H "Idempotency-Key: $(uuidgen | tr A-Z a-z)"