Skip to content

For the complete documentation index, see llms.txt.

Get account details

GET
/v1/account
curl --request GET \
--url https://api.gopromptless.ai/v1/account \
--header 'Authorization: Bearer <token>'

Return the organization associated with your API key. Use it to test a connection and label the account. org_name is null for an organization created before names were recorded.

The organization associated with the API key.

Media typeapplication/json
AccountResponse

The organization associated with the API key.

object
org_id
required
Org Id

Identifier of the organization the API key belongs to.

string
org_name
required
Org Name

Display name of the organization, or null if none was recorded.

string | null
Example
{
"org_id": "org_2b5f9c1e",
"org_name": "Acme, Inc."
}

The API key is missing, invalid, or revoked.

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}

The read store is temporarily unavailable (runtime_store_unavailable).

Media typeapplication/json
ApiTriggerErrorResponse

Error body returned when an API trigger request is rejected.

object
error
required
Error

Stable machine-readable error code.

string
message
required
Message

Human-readable explanation of the error.

string
Example
{
"error": "authentication_failed",
"message": "Authentication failed."
}