Issue a project key for the data plane. The secret is returned once.
POST
/v0/projects/{id}/keys
const url = 'https://infra-hyphae.run/v0/projects/example/keys';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://infra-hyphae.run/v0/projects/example/keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
label
string | null
Examplegenerated
{ "label": "example"}Responses
Section titled “ Responses ”Key issued.
Media typeapplication/json
object
key_id
required
string
key
required
Shown once. The control plane keeps a verifier, not the secret.
string
label
string | null
created_at
required
RFC 3339, UTC.
string format: date-time
Examplegenerated
{ "key_id": "example", "key": "example", "label": "example", "created_at": "2026-04-15T12:00:00Z"}Malformed or out-of-bounds input (invalid_request).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Missing, malformed, duplicate, or unknown credential (authentication_required).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”WWW-Authenticate
string
Unknown route, or a project the caller does not own (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}