GitHub Campaigns API

Endpoints to manage campaigns via the REST API.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

1 of 5 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

GET /orgs/{org}/campaigns List an organization's security campaigns · List campaigns for an organization conformant #
Ask an LLM
“Which security campaigns exist in my organization?”
“Can I list only open campaigns in an org?”
Tell an agent
List campaigns in {org}.
Show {state} campaigns in {org}.
POST /orgs/{org}/campaigns Create an organization security campaign · Create a campaign for an organization #
Ask an LLM
“How do I start a new security campaign in my organization?”
“Can a campaign be set to end automatically?”
Tell an agent
Create campaign {name} in {org} ending {ends_at}.
Create campaign {name} in {org} with managers {managers} and end date {ends_at}.
GET /orgs/{org}/campaigns/{campaign_number} Get an organization security campaign · Get a campaign for an organization #
Ask an LLM
“What are the details of a specific security campaign?”
“Can I see who manages a campaign?”
Tell an agent
Get campaign {campaign_number} in {org}.
Show the managers and end date of campaign {campaign_number} in {org}.
PATCH /orgs/{org}/campaigns/{campaign_number} Update an organization security campaign · Update a campaign #
Ask an LLM
“Can I change the end date of an existing campaign?”
“How do I close a security campaign?”
Tell an agent
Set the end date of campaign {campaign_number} in {org} to {ends_at}.
Close campaign {campaign_number} in {org} by setting state {state}.
DELETE /orgs/{org}/campaigns/{campaign_number} Delete an organization security campaign · Delete a campaign for an organization #
Ask an LLM
“How do I delete a security campaign?”
“Can I remove a campaign that is still open?”
Tell an agent destructive · confirm first
Delete campaign {campaign_number} in {org}.
Remove security campaign {campaign_number} from {org}.

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations
📖
Documentation
https://docs.github.com/en/rest/campaigns

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-campaigns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Campaigns API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: api.github.com
  description: 'Operations tagged campaigns across 2 of this provider''s published API definitions: github-github-full.yml, github-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-campaigns-api-openapi.yml