account

Issue a scoped credential

Issues a scoped API key with an optional service-account association and expiry. The secret is returned once.

When to use: Create a credential with permissions for a specific workload.

When not to use: Service-account credentials cannot issue additional credentials.

post/account/projects/{project}/keys

Request

  • Base URL: https://api.mapsource.io
  • URL: https://api.mapsource.io/account/projects/{project}/keys
  • Auth: HTTP bearer

Path parameters

projectstring required

Project id or slug.

Request body

labelstring

Credential label.

serviceAccountIdstring

Bind the key to an agent identity.

expiresInDaysinteger

Expire the key automatically.

Response

Issue a scoped credential

schemastring
keystring

API key secret, returned only when issued.

revealstring
credentialobject

Changes

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