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

# Get an org-level variable

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

## Path parameters

- `org` string, required
- `variablename` string, required

## Response `200`

ActionVariable

- ActionVariable — ActionVariable return value of the query API
  - `data` string — the value of the variable
  - `description` string — the description of the variable
  - `name` string — the name of the variable
  - `owner_id` integer — the owner to which the variable belongs
  - `repo_id` integer — the repository to which the variable belongs

## Other responses

- `400` — APIError is error format response
- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
