POST
/
invites:accept
curl --request POST \
  --url https://api.withampersand.com/v1/invites:accept \
  --header 'Content-Type: application/json' \
  --data '{
  "invitedEmail": "<string>"
}'
{
  "builder": {
    "id": "builder-id-123",
    "idpProvider": "clerk",
    "idpRef": "<string>",
    "createTime": "2023-11-07T05:31:56Z",
    "firstName": "<string>",
    "lastName": "<string>",
    "fullName": "<string>",
    "primaryEmail": "<string>"
  },
  "projectRoles": {},
  "orgRole": {
    "role": "admin",
    "principalType": "team",
    "principalId": "builder-id-123",
    "org": {
      "id": "org-123",
      "label": "Acme Inc",
      "defaultTeamId": "<string>",
      "createTime": "2023-11-07T05:31:56Z",
      "updateTime": "2023-11-07T05:31:56Z"
    }
  }
}

Body

application/json
invitedEmail
string
required

The email address that the invite was sent to

Response

200
application/json
Information about the current user and their organizations and projects
builder
object
required
projectRoles
object
required

A map of project IDs to project roles for the builder.

orgRole
object