Delete Membership

delete/v1/memberships/{membership_id}

Revokes a person's access to the workspace by deleting their membership. Side effect: removes the membership so the person loses workspace access. Returns no body.

Requires a bearer token: Authorization: Bearer <token>.

Path parameters

NameTypeRequiredDescription
membership_idstring <uuid>YesPublic UUID of the membership.e.g. 3d4e5f60-7182-493a-a4b5-c6d7e8f9a0b1

Request

cURL
curl -X DELETE https://api.wellapp.ai/v1/memberships/{membership_id} \
  -H "Authorization: Bearer $WELL_API_TOKEN"

Responses

204The membership was revoked.

401Unauthorized

{
  "code": "UNAUTHORIZED",
  "status": 401,
  "title": "Unauthorized",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

403Forbidden

{
  "code": "FORBIDDEN",
  "status": 403,
  "title": "Forbidden",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}

404Not Found

{
  "code": "NOT_FOUND",
  "status": 404,
  "title": "Not Found",
  "message": "See title.",
  "meta": {
    "trace_id": "a1b2c3",
    "log_id": "a1b2c3"
  }
}