GitHub · Arazzo Workflow

GitHub Provision an Org Repository and Register an Org Webhook

Version 1.0.0

Create an organization repository, then register an organization-level webhook.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CodePipelinesPlatformSoftware DevelopmentSource ControlT1ArazzoWorkflows

Provider

github

Workflows

provision-org-repo-with-webhook
Create an org repository then register an org webhook for event delivery.
Creates an organization-owned repository and registers an organization webhook that delivers the selected events to the supplied URL.
2 steps inputs: events, githubToken, name, org, private, webhookUrl outputs: hookId, repoName, repoUrl
1
createOrgRepository
Create the organization-owned repository.
2
registerWebhook
Register an organization webhook that delivers the selected events to the supplied URL as JSON.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: GitHub Provision an Org Repository and Register an Org Webhook
  summary: Create an organization repository, then register an organization-level webhook.
  description: >-
    A provisioning pattern that stands up a new organization repository and
    wires the organization's event delivery in one pass. The workflow creates a
    repository owned by the organization and then registers an organization
    webhook that will deliver the selected events to the supplied endpoint. The
    webhook is created at the organization level because the GitHub organization
    spec exposes organization webhook management; it therefore applies to events
    across the organization rather than only the new repository. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: orgsApi
  url: ../openapi/github-orgs-api-openapi.yml
  type: openapi
- name: reposApi
  url: ../openapi/github-repos-api-openapi.yml
  type: openapi
workflows:
- workflowId: provision-org-repo-with-webhook
  summary: Create an org repository then register an org webhook for event delivery.
  description: >-
    Creates an organization-owned repository and registers an organization
    webhook that delivers the selected events to the supplied URL.
  inputs:
    type: object
    required:
    - githubToken
    - org
    - name
    - webhookUrl
    properties:
      githubToken:
        type: string
        description: A GitHub token with org admin and repo scope, passed as a Bearer credential.
      org:
        type: string
        description: The login of the organization.
      name:
        type: string
        description: The name of the repository to create.
      private:
        type: boolean
        description: Whether the repository is private.
      webhookUrl:
        type: string
        description: The URL that will receive webhook deliveries.
      events:
        type: array
        description: The list of event names the webhook should subscribe to.
        items:
          type: string
  steps:
  - stepId: createOrgRepository
    description: Create the organization-owned repository.
    operationId: repos/create-in-org
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.githubToken
    - name: org
      in: path
      value: $inputs.org
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.name
        private: $inputs.private
        auto_init: true
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      repoName: $response.body#/name
      repoUrl: $response.body#/html_url
  - stepId: registerWebhook
    description: >-
      Register an organization webhook that delivers the selected events to the
      supplied URL as JSON.
    operationId: orgs/create-webhook
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.githubToken
    - name: org
      in: path
      value: $inputs.org
    requestBody:
      contentType: application/json
      payload:
        name: web
        active: true
        events: $inputs.events
        config:
          url: $inputs.webhookUrl
          content_type: json
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      hookId: $response.body#/id
      hookUrl: $response.body#/url
  outputs:
    repoName: $steps.createOrgRepository.outputs.repoName
    repoUrl: $steps.createOrgRepository.outputs.repoUrl
    hookId: $steps.registerWebhook.outputs.hookId

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/github-provision-org-repo-with-webhook-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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