Stainless · Example Payload

Stainless Sdk Generation Example

Example Stainless SDK generation workflow using the GitHub Action integration

Code GenerationDocumentationDeveloper ExperienceMCPPlatformSDKTerraform

Stainless Sdk Generation Example is an example object payload from Stainless, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

descriptionworkflowstepsfeatures_demonstrated

Example Payload

Raw ↑
{
  "description": "Example Stainless SDK generation workflow using the GitHub Action integration",
  "workflow": "openapi-spec-upload",
  "steps": [
    {
      "step": 1,
      "name": "Upload OpenAPI Spec via GitHub Action",
      "action": "stainless-api/upload-openapi-spec-action@v1",
      "config": {
        "stainless_api_key": "${{ secrets.STAINLESS_API_KEY }}",
        "openapi_spec": "openapi.yml",
        "project": "my-api",
        "branch": "${{ github.ref_name }}"
      }
    },
    {
      "step": 2,
      "name": "Stainless generates SDKs",
      "outputs": [
        {
          "language": "TypeScript",
          "package": "npm",
          "repository": "github.com/my-org/my-api-node"
        },
        {
          "language": "Python",
          "package": "PyPI",
          "repository": "github.com/my-org/my-api-python"
        },
        {
          "language": "Go",
          "package": "pkg.go.dev",
          "repository": "github.com/my-org/my-api-go"
        },
        {
          "language": "Java",
          "package": "Maven Central",
          "repository": "github.com/my-org/my-api-java"
        }
      ]
    },
    {
      "step": 3,
      "name": "Developer installs and uses TypeScript SDK",
      "install": "npm install my-api",
      "usage": {
        "language": "TypeScript",
        "code": "import MyAPI from 'my-api';\nconst client = new MyAPI({ apiKey: process.env.MY_API_KEY });\nconst result = await client.resources.list({ page: 1, perPage: 20 });"
      }
    }
  ],
  "features_demonstrated": [
    "Automatic retry with exponential backoff",
    "Type-safe method calls",
    "Automatic pagination",
    "Environment variable authentication",
    "Multi-language generation from single OpenAPI spec"
  ]
}

Work with this as data

Every example 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 examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example 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 example
curl "https://apis.io/api/v1/examples/stainless-sdk-generation-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

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

Get an API key

Free tier, no email required.

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