> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List corporations

> Get all corporations in an organization

Retrieves a paginated list of all corporations associated with your organization.

<ParamField query="cursor" type="string">
  Cursor for pagination. Use the cursor returned in the previous response to fetch the next page.
</ParamField>

<ParamField query="limit" default="10" type="integer">
  Number of items to return per page. Must be between 1 and 100.
</ParamField>

<ResponseField name="corporations" type="array">
  Array of corporation objects.

  <Expandable title="Corporation object">
    <ResponseField name="id" type="string" required>
      Unique identifier for the corporation.
    </ResponseField>

    <ResponseField name="legal_name" type="string" required>
      Legal name of the entity, including the type suffix.
    </ResponseField>

    <ResponseField name="created_at" type="integer" required>
      Unix timestamp of when the corporation was created.
    </ResponseField>

    <ResponseField name="jurisdiction" type="string" required>
      Jurisdiction of the corporation.
    </ResponseField>

    <ResponseField name="email_alias" type="string">
      Email alias for the corporation.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total_corporations" type="integer" required>
  Total number of corporations in the organization.
</ResponseField>

<ResponseField name="cursor" type="string">
  Cursor to use for fetching the next page. Only present if there are more results.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://transaction-tax.api.in.commenda.io/api/v1/corporations?limit=20' \
    --header 'Authorization: Bearer <token>'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://transaction-tax.api.in.commenda.io/api/v1/corporations?limit=20', {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer <token>'
    }
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
    'https://transaction-tax.api.in.commenda.io/api/v1/corporations',
    params={'limit': 20},
    headers={'Authorization': 'Bearer <token>'}
  )

  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully fetched corporations.",
    "data": {
      "corporations": [
        {
          "id": "corp_123abc",
          "legal_name": "Acme Corporation Inc.",
          "created_at": 1704067200,
          "jurisdiction": "US",
          "email_alias": "acme@filings.commenda.io"
        },
        {
          "id": "corp_456def",
          "legal_name": "Example LLC",
          "created_at": 1704153600,
          "jurisdiction": "US"
        }
      ],
      "total_corporations": 2
    }
  }
  ```

  ```json 400 theme={null}
  {
    "error": {
      "code": "PAGINATION_INVALID_LIMIT",
      "message": "Limit must be between 1 and 100"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /corporations
openapi: 3.0.1
info:
  title: Commenda Public APIs
  description: >-
    APIs for Commenda entity management, partner incorporation, indirect tax,
    compliance, and corporate operations.
  license:
    name: NONE
    url: NONE
  version: 1.0.0
servers:
  - url: https://api.prod.commenda.io/api/v1
    description: Commenda platform APIs, including Partner Incorporation and Commenda OS.
  - url: https://transaction-tax.api.in.commenda.io/api/v1
    description: Global Indirect Tax API.
security:
  - bearerAuth: []
paths:
  /corporations:
    get:
      summary: Get all corporations.
      description: Get all corporations associated with a sales tax partner.
      operationId: getCorporations
      parameters:
        - name: cursor
          in: query
          description: Cursor for pagination
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Number of items to return per page
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
      responses:
        '200':
          description: Get all corporations response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    required:
                      - corporations
                    properties:
                      corporations:
                        type: array
                        items:
                          $ref: '#/components/schemas/Corporation'
                      cursor:
                        type: string
                  message:
                    type: string
                    example: Successfully fetched corporations.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Corporation:
      type: object
      description: A corporation registered with Commenda.
      required:
        - id
        - legal_name
      properties:
        id:
          type: string
          description: The unique identifier for a corporation.
          example: b6d009b0-d174-463f-b030-94643c28e209
        legal_name:
          type: string
          description: The legal name of the corporation.
          example: Acme Corporation
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: 'Specific Error type. Example: CLIENT_INVALID_REQUEST_BODY.'
              example: CLIENT_INVALID_REQUEST_BODY
            doc_url:
              type: string
              description: >-
                A link to the docs with details about this error. Example:
                https://sales-tax-docs.commenda.io/
              example: https://sales-tax-docs.commenda.io/
            title:
              type: string
              description: >-
                A short title describing the error. Example: Missing query
                parameters.
              example: Failed to validate the request body
            detail:
              type: string
              description: >-
                A json string with a description on how to fix the error.
                Example {"description":"Please pass in a valid corporation_id"}
            status:
              type: number
              description: >-
                The status code. It should be the same as the HTTP protocol
                status code. Example: 200
              example: 400
            instance:
              type: string
              description: >-
                The relative path that was hit by the user. Example:
                /api/v1/corporations/1
            Errors:
              type: array
              items:
                type: object
                properties:
                  details:
                    type: string
                    description: More details on how to solve this particular error.
                  pointer:
                    type: string
                    description: >-
                      Relative reference to missing or invalid piece of passed
                      information.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````