Skip to content

Exchange credentials for a new session token.

POST
/v0/login
curl --request POST \
--url https://infra-hyphae.run/v0/login \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "password": "example" }'
Media typeapplication/json
object
email
required
string
<= 254 characters
password
required
string
>= 8 characters <= 1024 characters
Examplegenerated
{
"email": "example",
"password": "example"
}

New session.

Media typeapplication/json
object
user_id
required
string
/^usr_[0-9a-f]{16}$/
token
required

Bearer for /v0/*. Stored server-side as a digest; no refresh.

string
/^hyc0_[0-9a-f]{64}$/
issued_at
required

RFC 3339, UTC.

string format: date-time
expires_at
required

RFC 3339, UTC.

string format: date-time
Examplegenerated
{
"user_id": "example",
"token": "example",
"issued_at": "2026-04-15T12:00:00Z",
"expires_at": "2026-04-15T12:00:00Z"
}

Malformed or out-of-bounds input (invalid_request).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid_request authentication_required authorization_denied not_found conflict payload_too_large not_implemented tenant_not_running tenant_running function_runtime_missing function_timeout function_bad_output function_busy orchestrator_unavailable upstream_unavailable internal
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
Allowed values: invalid_request authentication_required authorization_denied not_found conflict payload_too_large not_implemented tenant_not_running tenant_running function_runtime_missing function_timeout function_bad_output function_busy orchestrator_unavailable upstream_unavailable internal
message
required
string
Example
{
"error": {
"code": "invalid_request"
}
}
WWW-Authenticate
string
Allowed value: Bearer realm="hyphae-cloud"