Skip to content

Revoke a user's access token

DELETEhttps://sandbox-api.tryflume.ai/partner/v1/users/{external_ref}/token

Revokes a user's access token at once.

  • Every iframe session opened with it ends at its next call.
  • Verify the user again to issue a new token.

Guide: Users and verification

Request

Headers

HeaderRequiredDescription
X-Flume-Partner-KeyYesYour partner key. See Authentication and keys.

Path parameters

ParameterTypeDescription
external_refstringYour id for the user, as you sent it when the user verified.

This call takes no body.

Returns

204 with no body.

Errors

Every error uses one envelope. Branch on error.code.

StatusCodeMeaning
401EMBED_TOKEN_INVALIDYou sent an Authorization header and no X-Flume-Partner-Key. Flume read the call as one from its own iframe.
401PARTNER_KEY_INVALIDThe partner key is missing, unknown, revoked, expired, or from the other environment. On live, also a platform Flume has not enabled yet.
404NOT_FOUNDThe thing does not exist, or is not this user's. A search id that is not a UUID also returns this code.
422VALIDATION_FAILEDA field is missing, unknown or has an unusable value. field names it as a dotted path. Some refusals carry the detail in details and leave field empty.
500INTERNALSomething failed on Flume's side.