How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub Variables API

The Variables API from GitHub — 9 operation(s) for variables.

GitHub Variables API is one of 350 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Variables. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and an API reference.

This API exposes 20 operations across 9 paths, and defines 9 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: {protocol}://{hostname}/api/v3, {protocol}://{hostname}.

20 operations 9 paths 9 schemas 4 DELETE8 GET3 PATCH3 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

GitHub Variables API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (bearerHttpAuthentication).

  • bearerHttpAuthentication — Bearer Token

Paths & Operations 20

Across 9 paths, the API surfaces 20 operations — 4 DELETE, 8 GET, 3 PATCH, 3 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Variables 20
GET
/orgs/{org}/actions/variables
GitHub List Organization Variables
listOrganizationVariables 3 params → 200
POST
/orgs/{org}/actions/variables
GitHub Create an Organization Variable
createAnOrganizationVariable 1 param body → 201
GET
/orgs/{org}/actions/variables/{name}
GitHub Get an Organization Variable
getAnOrganizationVariable 2 params → 200
PATCH
/orgs/{org}/actions/variables/{name}
GitHub Update an Organization Variable
updateAnOrganizationVariable 2 params body → 204
DELETE
/orgs/{org}/actions/variables/{name}
GitHub Delete an Organization Variable
deleteAnOrganizationVariable 2 params → 204
GET
/orgs/{org}/actions/variables/{name}/repositories
GitHub List Selected Repositories for an Organization Variable
listSelectedRepositoriesForAnOrganizationVariable 4 params → 200409
PUT
/orgs/{org}/actions/variables/{name}/repositories
GitHub Set Selected Repositories for an Organization Variable
setSelectedRepositoriesForAnOrganizationVariable 2 params body → 204409
PUT
/orgs/{org}/actions/variables/{name}/repositories/{repository_id}
GitHub Add Selected Repository to an Organization Variable
addSelectedRepositoryToAnOrganizationVariable 3 params → 204409
DELETE
/orgs/{org}/actions/variables/{name}/repositories/{repository_id}
GitHub Remove Selected Repository from an Organization Variable
removeSelectedRepositoryFromAnOrganizationVariable 3 params → 204409
GET
/repos/{owner}/{repo}/actions/organization-variables
GitHub List Repository Organization Variables
listRepositoryOrganizationVariables 7 params → 200
GET
/repos/{owner}/{repo}/actions/variables
GitHub List Repository Variables
listRepositoryVariables 7 params → 200
POST
/repos/{owner}/{repo}/actions/variables
GitHub Create Repository Variable
createRepositoryVariable 5 params body → 201
GET
/repos/{owner}/{repo}/actions/variables/{name}
GitHub Get Repository Variable
getRepositoryVariable 6 params → 200
PATCH
/repos/{owner}/{repo}/actions/variables/{name}
GitHub Update Repository Variable
updateRepositoryVariable 6 params body → 204
DELETE
/repos/{owner}/{repo}/actions/variables/{name}
GitHub Delete Repository Variable
deleteRepositoryVariable 6 params → 204
GET
/repos/{owner}/{repo}/environments/{environment_name}/variables
GitHub List Environment Variables
listEnvironmentVariables 8 params → 200
POST
/repos/{owner}/{repo}/environments/{environment_name}/variables
GitHub Create an Environment Variable
createAnEnvironmentVariable 6 params body → 201
GET
/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
GitHub Get an Environment Variable
getAnEnvironmentVariable 7 params → 200
PATCH
/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
GitHub Update an Environment Variable
updateAnEnvironmentVariable 7 params body → 204
DELETE
/repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
GitHub Delete an Environment Variable
deleteAnEnvironmentVariable 7 params → 204

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are minimal-repository (87 properties), simple-user (21 properties), organization-actions-variable (6 properties), code-of-conduct (5 properties). Each schema is shown below with its type and property counts.

empty-object
object
An object without any properties.
simple-user
object
A GitHub user.
21 properties 18 required
code-of-conduct
object
Code Of Conduct
5 properties 4 required
minimal-repository
object
Minimal Repository
87 properties 46 required
organization-actions-variable
object
Organization variable for GitHub Actions.
6 properties 5 required
security-and-analysis
objectnull
3 properties
empty-object_2
object
An object without any properties.
actions-variable
object
4 properties 4 required
empty-object_3
object
An object without any properties.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-variables-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Events API
GitHub Feeds API
GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Notifications API
GitHub Octocat API
GitHub Projects API
GitHub Repos API
GitHub Search API
Where this information came from

This is an independent, third-party profile of GitHub Variables API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.