Skip to content
Maua.Culturewire

GitHub Gist

Code snippets and notes: create, read and edit gists

Developer toolsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Personal token (gist scope)SecretRequired

    Where to find them

    1. Open the link below (or “Settings” → “Developer settings” → “Personal access tokens” → “Tokens (classic)” → “Generate new token (classic)”).
    2. Check that the “gist” permission is selected, choose an expiration and click “Generate token”.
    3. Copy the token (ghp_…): it is shown only once.

    Get credentials (opens in a new tab)

  • OAuth 2.0

    PKCEYour OAuth app

    Bring your own OAuth app: register one with GitHub Gist, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide

    Registering the OAuth app

    1. In GitHub open “Settings” → “Developer settings” → “OAuth Apps” → “New OAuth App” (or the same path in the organization settings).
    2. Name it “Maua.Culturewire”, set “Homepage URL” to https://www.example.com and “Authorization callback URL” to the redirect URI shown below; click “Register application”.
    3. Copy the “Client ID”, click “Generate a new client secret” and copy the secret. If the organization restricts OAuth apps, an owner will have to approve it.

    Default scopes

    • gist
    • read:user

Tools (1)

  • GitHub Gist API requestGIST_SEND_REQUEST

    Authenticated call to the GitHub Gist API (https://api.github.com). Any endpoint of the API is allowed. Examples: GET /gists?per_page=20 (your gists), GET /gists/{id}, GET /gists/public, POST /gists {"description": "…", "public": false, "files": {"note.md": {"content": "…"}}}, PATCH /gists/{id}, DELETE /gists/{id}.

    Required scopes

    No scopes required

    Input

    GitHub Gist API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.