MetriBeacon
Menu

POST Revoke a pending workspace invitation

/api/v1/workspaces/{id}/invitations/{invitation}/revoke

Workspace roles and management scopes are checked together. The owner pays shared quotas. Invitations expire after 48 hours and can only be accepted by the invited verified email address. Membership mutations require an action-bound email confirmation; repeating the same confirmation and payload replays the result without consuming it again. Removing Editor rights revokes issued credentials; member removal cancels their archive jobs. Status-page publishing permissions are separate.

On this page

Access and permissions

Workspace roles and management scopes are checked together. The owner pays shared quotas. Invitations expire after 48 hours and can only be accepted by the invited verified email address. Membership mutations require an action-bound email confirmation; repeating the same confirmation and payload replays the result without consuming it again. Removing Editor rights revokes issued credentials; member removal cancels their archive jobs. Status-page publishing permissions are separate.

Browser session: __Host-mb_session cookie.

When using a browser session for a mutation, send the current CSRF token in X-CSRF-Token with the same-site cookie. OAuth consent uses its documented form field.

Parameters and headers

FieldLocationType and limitsRequiredMeaning
idPathstring; {"format":"uuid"}YesThe concrete workspace, member or invitation identifier. Foreign and unshared workspace identifiers grant no access.
invitationPathstring; {"format":"uuid"}YesThe concrete workspace, member or invitation identifier. Foreign and unshared workspace identifiers grant no access.

Request body

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":false}Yes—
$.confirmationActionConfirmationYes—
$.confirmation.codestring; {"pattern":"^[0-9]{6}$"}Yes—
$.confirmation.idstring; {"format":"uuid"}YesUUID of this resource. Keep the returned identifier for subsequent operations.

Responses

application/json

FieldType and limitsRequiredMeaning
$object; {"additionalProperties":true}Yes—
Stable error codes
unauthorized
invalid_credential

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
forbidden
csrf
invalid_origin
workspace_scope
confirmation_required
invalid_confirmation

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
not_found

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
already_invited
version_conflict
idempotency_conflict

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
invalid_input
invalid_token
invalid_reference
invalid_action

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
member_limit
rate_limited

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—
Stable error codes
unavailable
feature_unavailable

application/problem+json

FieldType and limitsRequiredMeaning
$ProblemYes—
$.codestringYesStable machine-readable error code
$.detailstringYesShort localized explanation without internal error details
$.instancestringYesUnique relative identifier /api/v1/requests/{request_id}; not a retrievable resource
$.messagestringYesTemporarily identical to detail for existing clients
$.message_keystringYesStable translation key for changing the displayed language without another request
$.message_paramsobject; {"additionalProperties":true}YesNamed, safely rendered message parameters; never arbitrary HTML
$.request_idstring; {"pattern":"^[0-9a-f]{32}$"}YesServer-generated diagnostic identifier. It contains no login token or credential.
$.statusinteger; {"maximum":599,"minimum":400}Yes—
$.titlestringYesLocalized HTTP status title
$.typestring; {"const":"about:blank"}Yes—

Retries and asynchronous work

This change does not have a general retry guarantee. If the response is unclear, read the affected resource before trying again. Follow Retry-After waiting times and request new sign-in or action codes when they expire.

Request examples

Replace demo IDs, timestamps and placeholders with your own values. For a retry, keep the same IDs, time and content. These examples do not run requests on this page.

Keep login links, codes, cookies and keys private. Do not print them in logs or share them in support requests.

shell
curl --fail-with-body --request POST --header @"$HOME/.config/metribeacon/headers.txt" --header 'Content-Type: application/json' --data-binary '{"confirmation":{"id":"00000000-0000-4000-8000-000000000002","code":"00000000"}}' "https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/invitations/00000000-0000-4000-8000-000000000001/revoke"
python
import json, os, urllib.request
request = urllib.request.Request("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/invitations/00000000-0000-4000-8000-000000000001/revoke", method="POST", headers={"Cookie": os.environ["MB_COOKIE"], "X-CSRF-Token": os.environ["MB_CSRF"], "Content-Type": "application/json"}, data=json.dumps({'confirmation': {'id': '00000000-0000-4000-8000-000000000002', 'code': '00000000'}}).encode())
with urllib.request.urlopen(request, timeout=30) as response:
    print(json.load(response))
javascript
const response = await fetch("https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/invitations/00000000-0000-4000-8000-000000000001/revoke", {method: "POST", credentials: "same-origin", headers: {"Content-Type": "application/json", "X-CSRF-Token": csrfToken}, body: JSON.stringify({"confirmation":{"id":"00000000-0000-4000-8000-000000000002","code":"00000000"}})});
console.log(response.status, await response.json());
go
package main
import ("fmt"; "net/http"; "os"; "strings"; "time")
func main() { client := &http.Client{Timeout:30*time.Second}; request, err := http.NewRequest("POST", "https://metribeacon.com/api/v1/workspaces/00000000-0000-4000-8000-000000000001/invitations/00000000-0000-4000-8000-000000000001/revoke", strings.NewReader("{\"confirmation\":{\"id\":\"00000000-0000-4000-8000-000000000002\",\"code\":\"00000000\"}}")); if err != nil { panic(err) }; request.Header.Set("Cookie", os.Getenv("MB_COOKIE")); request.Header.Set("X-CSRF-Token",os.Getenv("MB_CSRF"));request.Header.Set("Content-Type","application/json");response,err:=client.Do(request);if err!=nil{panic(err)};defer response.Body.Close();fmt.Println(response.StatusCode) }
  • HTTP API, OAuth and MCP

    Find the user API endpoints, their permissions, fields, examples and response formats.

  • POST Invite a verified account to a workspace

    Workspace roles and management scopes are checked together. The owner pays shared quotas. Invitations expire after 48 hours and can only be accepted by the invited verified email address. Membership mutations require an action-bound email confirmation; repeating the same confirmation and payload replays the result without consuming it again. Removing Editor rights revokes issued credentials; member removal cancels their archive jobs. Status-page publishing permissions are separate.

  • GET Read workspace membership audit

    Workspace roles and management scopes are checked together. The owner pays shared quotas. Invitations expire after 48 hours and can only be accepted by the invited verified email address. Membership mutations require an action-bound email confirmation; repeating the same confirmation and payload replays the result without consuming it again. Removing Editor rights revokes issued credentials; member removal cancels their archive jobs. Status-page publishing permissions are separate.

  • GET List workspace members and invitations

    Workspace roles and management scopes are checked together. The owner pays shared quotas. Invitations expire after 48 hours and can only be accepted by the invited verified email address. Membership mutations require an action-bound email confirmation; repeating the same confirmation and payload replays the result without consuming it again. Removing Editor rights revokes issued credentials; member removal cancels their archive jobs. Status-page publishing permissions are separate.