Skip to main content
GET
/
prime_account
Get Prime Account
curl --request GET \
  --url https://api.example.com/prime_account

Get Prime Account

Returns the Prime Account associated with the query key used to authenticate the request.

Request

GET /prime_account
No parameters required.

Response

curl https://prime-api.legend.xyz/prime_account \
  -H "Authorization: Bearer $LEGEND_QUERY_KEY"
Response
{
  "external_id": "lgd_a1b2c3d4e5f6",
  "name": "Acme Corp",
  "email": "[email protected]",
  "created_at": "2025-06-01T00:00:00Z"
}

Response fields

FieldTypeDescription
external_idstringUnique identifier for the Prime Account (lgd_ prefix)
namestringDisplay name of the Prime Account
emailstringAdmin email associated with the account
created_atstringISO 8601 timestamp of when the account was created