Projects
Rotate a project credential (owner-only)
Mints a replacement credential and revokes the old one in a single transaction, reusing the same name. The replacement records replacement_of. The new secret is returned exactly once.
post/projects/v1/{project_id}/credentials/{credential_id}/rotate
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/projects/v1/{project_id}/credentials/{credential_id}/rotate
- 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.
Response
Rotated. Carries the new secret ONCE.
Changes
No recorded changes to this operation across all 1 revision of this API.