Projects
Create a named project credential (owner-only)
Creates a named, individually revocable project credential. Owner membership on the project's owning org plus a fresh step-up is required; a grant key can NEVER create one (that would let a scoped agent credential escalate itself into a permanent root). Several credentials may be live per kind at once — that overlap is how you rotate without downtime. The secret is returned exactly once.
post/projects/v1/{project_id}/credentials
Request
- Base URL: https://api.run402.com
- URL: https://api.run402.com/projects/v1/{project_id}/credentials
- Auth: one of:
- API key in header SIGN-IN-WITH-X
- HTTP bearer
Path parameters
project_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
Example request
{
"name": "prod-deployer"
}Response
Created. Carries the secret ONCE.
Changes
No recorded changes to this operation across all 1 revision of this API.