Overview / System / Revoke a pending invitation

Revoke a pending invitation

post https://api.flactrum.com/v1/users/{user}/revoke-invitation

The link stops working at once. The membership stays; resend to invite again.

Required scope users.write
Success status200
Returns One BrandUser object

Parameters

NameInTypeDescription
user * path string ULID of the record.

Response fields

FieldTypeDescription
id string Membership id — not the user id.
user_id string —
name string|null —
email string|null —
role_id string —
role string|null Role slug.
branch_id string|null Set when the membership is scoped to one branch.
region string|null Set when scoped to a region.
branch_ids array Every branch the membership covers directly.
regions array Every region the membership covers.
scope string Derived from the branches and regions; the same value the invite input takes. scoped means more than one branch or region.
two_factor_required boolean This person must use two-factor authentication.
two_factor_enabled boolean Whether they have set it up.
invitation_url string Only in the response to an invite or resend, and only to the caller: the one-time acceptance link, so it can be passed on by hand if the e-mail does not arrive. Never stored or listed.
status string —
joined_at string|null —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X POST 'https://api.flactrum.com/v1/users/01m43sq9gd73aqrrdhmf6k8fph/revoke-invitation' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43sq9gd73aqrrdhmf6k8fph",
        "user_id": "01m43sq9gbd1c26m2mf92wnwcc",
        "name": "Ayşe",
        "email": "ayse@ornek.test",
        "role_id": "01m43spfnm0vw3yvyfa8m9byzb",
        "role": "sube_muduru",
        "branch_id": "01m43sq9bzygsrr6vqy2jt37qw",
        "region": "Ege",
        "branch_ids": [
            "01m43sq9bzygsrr6vqy2jt37qw",
            "01m43sq9f5g6m7r5k6hb62kvq9"
        ],
        "regions": [
            "Ege"
        ],
        "scope": "scoped",
        "two_factor_required": false,
        "two_factor_enabled": false,
        "status": "invited",
        "invited_at": "2026-10-04T15:50:03+00:00",
        "invitation_expires_at": null,
        "joined_at": null,
        "created_at": "2026-10-04T15:50:03+00:00",
        "updated_at": "2026-10-04T15:50:03+00:00"
    }
}