Skip to content

GET /api/v1/account

Operation: getAccount.

Profile/security metadata (self); no password/token hashes

GET https://amplerun-api.spiry.org/api/v1/account

Use the credential and scope required by this operation. For programmatic renter/host calls: Authorization: Bearer $AMPLERUN_API_KEY. A host-agent signature or other specialized proof is required where the description specifies it.

Account profile.

application/json

FieldTypePresenceDescription
account_idstringRequired
emailstringRequiredA wallet-created account without an email has a non-routable placeholder ending in @wallet.placeholder.invalid (RFC 6761).
role“renter” / “host” / “admin”Required
host_enabledbooleanRequired
email_verifiedbooleanRequiredQuotes, reservations and funding require a verified email or a wallet-created account; hosting requires a verified email.
two_factor_enabledbooleanRequired
auth_method“session” / “api-key”RequiredHow this request authenticated.
step_up_method“totp” / “password” / “wallet” / “none”RequiredThe proof POST /api/v1/account/step-up asks for. wallet is a fresh EIP-4361 signature from the wallet a wallet-created account signs in with.
namestringOptionalDisplay name from sign-up or the social provider; null when none was given.
account_kind“human” / “agent”OptionalWho opened the account: a person, or an agent through self-registration.
created_atstringOptionalWhen the account was created (member since).
{
"type": "object",
"required": [
"account_id",
"email",
"role",
"host_enabled",
"email_verified",
"two_factor_enabled",
"auth_method",
"step_up_method"
],
"properties": {
"account_id": {
"type": "string"
},
"email": {
"type": "string",
"description": "A wallet-created account without an email has a non-routable placeholder ending in @wallet.placeholder.invalid (RFC 6761)."
},
"role": {
"enum": [
"renter",
"host",
"admin"
]
},
"host_enabled": {
"type": "boolean"
},
"email_verified": {
"type": "boolean",
"description": "Quotes, reservations and funding require a verified email or a wallet-created account; hosting requires a verified email."
},
"two_factor_enabled": {
"type": "boolean"
},
"auth_method": {
"enum": [
"session",
"api-key"
],
"description": "How this request authenticated."
},
"step_up_method": {
"enum": [
"totp",
"password",
"wallet",
"none"
],
"description": "The proof POST /api/v1/account/step-up asks for. wallet is a fresh EIP-4361 signature from the wallet a wallet-created account signs in with."
},
"name": {
"type": "string",
"nullable": true,
"description": "Display name from sign-up or the social provider; null when none was given."
},
"account_kind": {
"enum": [
"human",
"agent"
],
"description": "Who opened the account: a person, or an agent through self-registration."
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "When the account was created (member since)."
}
}
}

Error envelope. 401 unauthenticated, 403/404 forbidden, 409 conflict, 422 invalid input, 429 rate limited (code UNAVAILABLE, retryable:true, no Retry-After header), 503 unavailable money/provider state with retryable:true.

application/json

FieldTypePresenceDescription
errorobjectRequired
{
"$ref": "#/components/schemas/ErrorEnvelope"
}

Replace path/query placeholders and provide the required JSON body, headers and credential from the sections above. This is a request outline, not a command that chooses an amount or starts a rental for you.

Terminal window
curl --request GET 'https://amplerun-api.spiry.org/api/v1/account' \
--header "Authorization: Bearer $AMPLERUN_API_KEY"

Schema definitions · Download OpenAPI · Authentication · Errors and recovery

Official AmpleRun documentation · Contract v3 · Generated from the API contract · Revision 52fe29de · Open AmpleRun · View Markdown · For agents