apistockdocs
v0.4 GitHub apistock.dev
API reference/Organisations

Invite someone

POST /v1/orgs/{orgId}/invitations
Emails a link to the frontend page in orgs.invitation_url. Accepting needs an account whose verified email is the invited address.

Authorization

bearer
Authorizationheader · stringrequired

Session token from POST /v1/auth/login with "transport": "bearer". Browsers use the session cookie that login sets instead.

Path

orgIdstringrequired
maxLength: 64

Body

application/json
emailstringrequired
format: emailmaxLength: 254
rolestring
default: "member"maxLength: 64

Responses

errors: application/problem+json
201

Created

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict

422

Unprocessable Entity

429

Too Many Requests

500

Internal Server Error

Match errors on the problem's code, which stays the same, not on its message.

esc
↑↓ move↵ openesc close