DELETE /api/my-account/grants/{grantId}

Revoke a specific user application grant by grant ID and remove the related session authorization. A logto-verification-id in header is required for revoking grants.

Path parameters

  • grantId string Required

    The unique identifier of the grant.

Responses

  • 204

    The grant was revoked successfully.

  • 400

    The field is not editable.

  • 401

    Permission denied, the verification record is invalid or the session does not have the required scope to revoke grants.

  • 403

    Forbidden

  • 404

    The grant does not exist.

  • 500

    Internal Server Error

DELETE /api/my-account/grants/{grantId}
curl \
 --request DELETE 'https://[tenant_id].logto.app/api/my-account/grants/{grantId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"