Bluejay Bluejay as Code API

The Bluejay as Code API from Bluejay — 2 operation(s) for bluejay as code.

Operations 2

GET /v1/bluejay-as-code/{root_type}/{root_id} Pull Bluejay As Code #
POST /v1/bluejay-as-code Push Bluejay As Code #

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/bluejay:bluejay-bluejay-as-code-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

bluejay-bluejay-as-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bluejay as Code API
  description: Bluejay API
  version: 0.1.0
servers:
- url: https://api.getbluejay.ai
  description: Production server
security:
- apiKeyAuth: []
tags:
- name: Bluejay as Code
paths:
  /v1/bluejay-as-code/{root_type}/{root_id}:
    get:
      tags:
      - Bluejay as Code
      summary: Pull Bluejay As Code
      operationId: pull_bluejay_as_code_v1_bluejay_as_code__root_type___root_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: root_type
        in: path
        required: true
        schema:
          enum:
          - simulation
          - agent
          - digital-human
          - custom-metric
          type: string
          title: Root Type
      - name: root_id
        in: path
        required: true
        schema:
          type: string
          title: Root Id
      - name: format
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - json
            - yaml
            type: string
          - type: 'null'
          title: Format
      - name: X-Organization-Id
        in: header
        required: false
        schema:
          type: string
          title: X-Organization-Id
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
        description: API key required to authenticate requests.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BluejayAsCodePayload'
            application/yaml:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/bluejay-as-code:
    post:
      tags:
      - Bluejay as Code
      summary: Push Bluejay As Code
      operationId: push_bluejay_as_code_v1_bluejay_as_code_post
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Organization-Id
        in: header
        required: false
        schema:
          type: string
          title: X-Organization-Id
      - name: X-API-Key
        in: header
        required: true
        schema:
          type: string
        description: API key required to authenticate requests.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PushResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BluejayAsCodePayload'
          application/yaml:
            schema:
              $ref: '#/components/schemas/BluejayAsCodePayload'
components:
  schemas:
    BluejayAsCodePayload:
      properties:
        agents:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Agents
        simulations:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Simulations
        digital_humans:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Digital Humans
        custom_metrics:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Custom Metrics
      type: object
      required:
      - agents
      - simulations
      - digital_humans
      - custom_metrics
      title: BluejayAsCodePayload
    PushResponse:
      properties:
        valid:
          type: boolean
          title: Valid
        errors:
          items:
            $ref: '#/components/schemas/EntityValidationError'
          type: array
          title: Errors
        actions:
          items:
            type: string
          type: array
          title: Actions
          default: []
        simulation_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Simulation Id
      type: object
      required:
      - valid
      - errors
      title: PushResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EntityValidationError:
      properties:
        entity_type:
          type: string
          title: Entity Type
        entity_id:
          title: Entity Id
        errors:
          items:
            type: string
          type: array
          title: Errors
      type: object
      required:
      - entity_type
      - entity_id
      - errors
      title: EntityValidationError
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key required to authenticate requests.
    scimToken:
      type: http
      scheme: bearer
      description: SCIM token from Settings → Security → User provisioning (SCIM). Not an API key.
x-provenance:
  method: harvested
  publisher: Bluejay
  source: https://api.getbluejay.ai/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)