Skip to content

API Reference / Memberships

Decline a workspace invitation

Declines a pending workspace invitation. The membership is removed and no access is granted.

POST/accounts.v1.Accounts/DeclineMembership

Request body

application/jsonRequired

Request by an invited user to decline their own workspace invitation. The invitation is deleted and no access is granted.

membershipId?string

Opaque 16-byte identifier of the invitation to decline, base64-encoded in JSON. Must be the caller's own invitation.

Format"byte" base64

Response body

application/json

Success

No fields.

curl -X POST "https://api.goldmine.to/accounts.v1.Accounts/DeclineMembership" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "membershipId": "ICEiIyQlJicoKSorLC0uLw=="
  }'
{}