---
title: "Get an organization variable"
method: GET
path: "/orgs/{org}/actions/variables/{name}"
tags: ["actions"]
---

# Get an organization variable

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

Gets a specific variable in an organization.

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
- `name` string, required

## Response `200`

Response

- OrganizationActionsVariable — Organization variable for GitHub Actions.
  - `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)
