---
updatedAt: 2026-05-28T21:10:23.000Z
agentTools:
  projectIndex: https://docs.hivestack.com/llms.txt
---

# Get a list of accounts

Returns the list of up to 100 accounts.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Campaigns",
    "description": "Campaigns management and data pushes",
    "version": "2",
    "contact": {
      "email": "support@perion.com"
    }
  },
  "servers": [
    {
      "url": "https://apps.hivestack.com/api/v2"
    }
  ],
  "security": [
    {
      "hs-auth": []
    }
  ],
  "tags": [
    {
      "name": "Accounts"
    }
  ],
  "paths": {
    "/accounts": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get a list of accounts",
        "description": "Returns the list of up to 100 accounts.",
        "operationId": "getAccounts",
        "parameters": [
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          }
        ],
        "responses": {
          "200": {
            "description": "OK - List of account objects",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/account"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/UnauthorizedError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "hs-auth": {
        "type": "apiKey",
        "name": "hs-auth",
        "in": "header",
        "description": "The value should follow the following format: `apikey access_key:secret_key`"
      }
    },
    "schemas": {
      "account": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "integer",
            "example": 1,
            "readOnly": true,
            "description": "Auto generated id associated to the account."
          },
          "external_id": {
            "type": "string",
            "example": "ac123",
            "description": "A customizable id field.",
            "default": null
          },
          "logo_url": {
            "$ref": "#/components/schemas/logo_url"
          },
          "name": {
            "type": "string",
            "example": "Air Canada",
            "description": "The name to give the account"
          },
          "organization_id": {
            "$ref": "#/components/schemas/organization_id"
          }
        }
      },
      "logo_url": {
        "type": "string",
        "example": "https://example.com/logo.jpg",
        "readOnly": true,
        "format": "url",
        "description": "url associated to the logo"
      },
      "organization_id": {
        "type": "integer",
        "example": 1,
        "readOnly": true,
        "description": "The organization ID of the event's owner"
      }
    },
    "responses": {
      "UnauthorizedError": {
        "description": "API key is missing or invalid. Please contact support@perion.com.",
        "headers": {
          "hs-auth": {
            "description": "Set the hs-auth header following this pattern `apikey your_access_key:your_secret_key`",
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "string",
                  "example": "Missing authorization info"
                }
              }
            }
          }
        }
      }
    },
    "parameters": {
      "top": {
        "name": "$top",
        "in": "query",
        "description": "The number of items to return (max 100)",
        "required": false,
        "schema": {
          "type": "integer",
          "example": 100,
          "default": 100
        }
      },
      "skip": {
        "name": "$skip",
        "in": "query",
        "required": false,
        "description": "The number of items to skip before starting to collect the result set.",
        "schema": {
          "type": "integer",
          "example": 0,
          "default": 0
        }
      }
    }
  }
}
```