Skip to navigation

Invite a person by email

Invites an email address with a role. The invite lasts 7 days and is used once, when the person accepts it with POST /v1/invites/{invite_id}/accept from a session with that address, verified. No request joins an account by itself. A person who already belongs to an account cannot accept a second one. Meadow sends no email itself: Supabase sends the sign-in link when the person asks for one, and the sign-up check lets an invited address in.

One open invite per address: a second is 409 invite_exists. An address already in the account is 409 already_member. An account may send 20 invites an hour (429 invite_rate_limited).

People: owner.

curl -sS -X POST "$MEADOW_BASE_URL/v1/invites" \
-H "Authorization: Bearer $SESSION_TOKEN" -H "Content-Type: application/json" \
-d '{"email": "grace@example.com", "role": "member"}'

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Request

This endpoint expects an object.
emailstringRequired<=254 characters
roleenumRequired

A person’s role in the account. owner: everything, and people. admin: everything except people. member: keys without the admin scope that they minted, stopping sandboxes, deleting images, and every read. viewer (shown as Read-only): every read. The dashboard labels viewer “Read-only”.

Allowed values:

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

The invite.
idstring

The invite id (inv_...), 130 random bits.

emailstring
The invited address
roleenum

A person’s role in the account. owner: everything, and people. admin: everything except people. member: keys without the admin scope that they minted, stopping sandboxes, deleting images, and every read. viewer (shown as Read-only): every read. The dashboard labels viewer “Read-only”.

Allowed values:
invited_bystring or null
The user id of the owner who sent it. Null when the Meadow team created it.
created_atdatetime
expires_atdatetime

7 days after created_at.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error