Membership invitations allow an admin of a space to invite a person to create a user account to connect to their existing membership. Once the account is created, the member can log in to Cobot and self-manage their membership.

POST https://:subdomain.cobot.me/api/memberships/:membership_id/invitations
Authentication required
yes, additionally user must be a space admin
Scope required
write_invitations
POST https://co-up.cobot.me/api/memberships/dce8ca410400c427cb4a3262e6874c9f/invitations

Request body is empty.

Response:

{
  "id": "efa7ca410400c427cb4a3262e6874c04",
  "user_url": "https://demo-space.cobot.me/invitations/efa7ca410400c427cb4a3262e6874c04",
  "accepted_at": null,
  "membership_id": "dce8ca410400c427cb4a3262e6874c9f"
}

No email is sent. Give the "user_url" to the person you want to invite to create an account.

GET https://:subdomain.cobot.me/api/invitations/:id
Authentication required
yes, additionally user must be a space admin
Scope required
read_invitations
GET https://co-up.cobot.me/api/invitations/efa7ca410400c427cb4a3262e6874c04

Response:

{
  "id": "efa7ca410400c427cb4a3262e6874c04",
  "user_url": "https://demo-space.cobot.me/invitations/efa7ca410400c427cb4a3262e6874c04",
  "accepted_at": "2017/03/01 12:04:34 +0000",
  "membership_id": "dce8ca410400c427cb4a3262e6874c9f"
}

back to index