---
title: "List organization variables"
method: GET
path: "/orgs/{org}/actions/variables"
tags: ["actions"]
---

# List organization variables

`GET /orgs/{org}/actions/variables`

Lists all organization variables.
You must authenticate using an access token with the `admin:org` scope to use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `organization_actions_variables:read` organization permission to use this endpoint. Authenticated users must have collaborator access to a repository to create, update, or read variables.

## Path parameters

- `org` string, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- object
  - `total_count` integer, required
  - `variables` OrganizationActionsVariable[], required
    - `name` string, required — The name of the variable.
    - `value` string, required — The value of the variable.
    - `created_at` string, date-time, required — The date and time at which the variable was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
    - `updated_at` string, date-time, required — The date and time at which the variable was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
    - `visibility` 'all' | 'private' | 'selected', required — Visibility of a variable
    - `selected_repositories_url` string, uri

---

[API](https://skmtc.dev/github/apis/enterprise-server.md) · [All operations](https://skmtc.dev/github/apis/enterprise-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-server/revisions/a5ab3b3ed3ca/schema)
