Projects

Revoke a project credential (owner-only)

Revokes one credential immediately. Scoped by project as well as id, so a guessed credential_id cannot reach another project's credential. Revoking frees its name for reuse. Other live credentials are unaffected.

delete/projects/v1/{project_id}/credentials/{credential_id}

Request

  • Base URL: https://api.run402.com
  • URL: https://api.run402.com/projects/v1/{project_id}/credentials/{credential_id}
  • Auth: one of:
    • API key in header SIGN-IN-WITH-X
    • HTTP bearer

Path parameters

project_idstring required
credential_idstring required

Headers

SIGN-IN-WITH-Xstring required

SIWX auth header — base64-encoded JSON payload containing a signed CAIP-122 (EIP-4361) message. See https://docs.x402.org/extensions/sign-in-with-x.

Request body

reasonstring

Response

Revoked

credential_idstring
project_idstring
kind'anon' | 'service'
namestring
created_atstring date-time
last_used_atstring date-time nullable
expires_atstring date-time nullable
revoked_atstring date-time nullable
revoked_reasonstring nullable
replacement_ofstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.