Docs
Workspace Settings

Invite a member

Emails an invitation and returns the pending invite. The invitee becomes a member only once they accept, so they will not appear in the member list yet. Inviting someone as admin additionally requires the calling key to act as an organization owner or admin - a workspace key (ti_ws_) never does, so use a personal key for that.

POST
/v2/workspaces/{workspaceId}/members/invite

Path Parameters

workspaceIdnumber
emailstring
rolestring
Value in"admin" | "editor" | "viewer"

Response Body

curl -X POST "https://lynx-api.trulyinbox.com/v2/workspaces/0/members/invite" \  -H "Content-Type: application/json" \  -d '{    "email": "colleague@example.com"  }'
{
  "data": {
    "id": 0,
    "email": "string",
    "role": "owner",
    "expiresAt": "2019-08-24T14:15:22Z",
    "inviterName": {}
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "invalid_request",
    "message": "string",
    "details": {},
    "retry_after": 34
  },
  "meta": {
    "request_id": "req_2f1c…",
    "timestamp": "2019-08-24T14:15:22Z"
  }
}