Create access key
Create a permanent or time-limited access key from a CoreWeave Cloud token.
gRPC method: CreateAccessKeyFromJWT
- The API server is
https://api.coreweave.com. - Replace
{API_ACCESS_TOKEN}with your CoreWeave API access token. - For required permissions, see IAM Access Policies.
durationSeconds.
- Set
durationSecondsto0to create a permanent key. - Set
durationSecondsto a positive integer to create a temporary key with that lifespan in seconds.
Authorizations
CoreWeave API access token sent as a bearer token in the Authorization header (the value is prefixed with Bearer). Used by every operation except the SAML/OIDC token-exchange endpoints (anonymous) and the container credentials GET (which uses ContainerCredentialsAuth).
Body
Inputs for creating an access key from a CoreWeave Cloud token.
Lifespan of the resulting access key in seconds. Set to 0 to create a permanent key; set to a positive integer to create a temporary key with that lifespan. Required.
x >= 0Free-form caller-supplied attributes attached to the key (for example, name).
Response
OK
The newly-minted access key. The secretKey is the only opportunity to read the secret value.
The access-key ID.
The secret access key. Treat as a credential and store it securely on receipt.
The fully-qualified principal name that owns the access key.
The expiration time of the access key. Permanent keys may report a sentinel value.
The attributes that were attached to the key on creation.