For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Get API Key
GuidesAPI Reference
GuidesAPI Reference
  • Overview
    • API Reference
  • Endpoint Reference
    • Organizations
    • Projects
    • Documents
    • Agent
    • Check
  • API Explorer
      • GETGet the organization for the current API key
Get API Key
LogoLogo
API ExplorerOrganizations

Get the organization for the current API key

GET
/api/v2/organization
GET
/api/v2/organization
$curl https://api-staging.pyramid-ai.com/api/v2/organization \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "request_id": "req_9f8b7c6d5a4e3f21",
3 "success": true,
4 "data": {
5 "id": "iPwoNDP1ribwqCTkvlEyiA6DtGZdYe0k",
6 "name": "AIS Construction Ltd"
7 },
8 "pagination": {
9 "total": 127,
10 "offset": 0,
11 "limit": 50
12 }
13}
Returns the organization associated with the API key used in this request. Useful for verifying your key is correctly configured and seeing which organization it belongs to.
Was this page helpful?
Previous

Get a project by ID

Next
Built with

Authentication

AuthorizationBearer

Pyramid API key (prefix with “Bearer ”)

Response

Organization details
request_idstringformat: "uuid"

Server-generated per-request UUID. Also sent as X-Request-Id response header. Include in support tickets.

successany
dataobject
paginationobject

Present only on list endpoints. Top-level (not nested inside data).

Errors

401
Unauthorized Error
404
Not Found Error