---
updatedAt: 2025-05-19T20:07:11.000Z
agentTools:
  projectIndex: https://developer.ayyeka.com/llms.txt
---

# getOrganizationById account

Returns information about the specified account

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "RESTAPI Service",
    "description": "RESTful API",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://restapi.ayyeka.com/v2.0"
    }
  ],
  "paths": {
    "/account/organization/{organizationId}": {
      "get": {
        "tags": [
          "account"
        ],
        "summary": "getOrganizationById account",
        "description": "Returns information about the specified account",
        "operationId": "account#getOrganizationById",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "description": "ID of the organization whose information should be returned",
            "required": true,
            "schema": {
              "type": "integer",
              "description": "ID of the organization whose information should be returned",
              "example": 123,
              "minimum": 1,
              "format": "int64"
            },
            "example": 123
          }
        ],
        "responses": {
          "200": {
            "description": "OK response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AkapiStoredOrganization"
                },
                "example": {
                  "account_id": 123,
                  "display_name": "MyOrganization LTD",
                  "id": 123
                }
              }
            }
          },
          "400": {
            "description": "bad_request: Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "404": {
            "description": "not_found: Organization not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "429": {
            "description": "too_many_requests: Too many requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          },
          "500": {
            "description": "internal_server_error: System error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Unauthorized"
                }
              }
            }
          }
        },
        "security": [
          {
            "jwt_header_Authorization": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AkapiStoredOrganization": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "integer",
            "description": "Account ID",
            "example": 123,
            "minimum": 1,
            "format": "int64"
          },
          "display_name": {
            "type": "string",
            "description": "Organization name",
            "example": "MyOrganization LTD",
            "maxLength": 256
          },
          "id": {
            "type": "integer",
            "description": "ID is the unique id of the organization.",
            "example": 123,
            "format": "int64"
          }
        },
        "example": {
          "account_id": 123,
          "display_name": "MyOrganization LTD",
          "id": 123
        },
        "required": [
          "id",
          "account_id",
          "display_name"
        ]
      },
      "Unauthorized": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Message of error",
            "example": "incorrect credentials"
          },
          "request_id": {
            "type": "string",
            "description": "Request ID",
            "example": "uGv69FKl"
          }
        },
        "description": "Unauthorized",
        "example": {
          "message": "incorrect credentials",
          "request_id": "uGv69FKl"
        },
        "required": [
          "request_id",
          "message"
        ]
      }
    },
    "securitySchemes": {
      "jwt_header_Authorization": {
        "type": "http",
        "description": "Secures endpoint by requiring a valid JWT token retrieved via the signin endpoint.",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "account"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```