Skip to content

OpenAPI contract ​

Interface Description ​

Read the machine-readable OpenAPI contract that describes the Developer OpenAPI.

Endpoint ​

FieldValue
MethodGET
Path/openapi/v2/openapi.json
Operation IDgetDeveloperOpenApiContract
AuthenticationBearer OpenAPI key

Parameters ​

This operation has no path or query parameters.

Request Body ​

This operation has no request body.

Request Example ​

bash
curl -X GET "https://openapi.example.com/openapi/v2/openapi.json" \
  -H "Authorization: Bearer <openapi-key>"

Successful Responses ​

200 ​

Complete OpenAPI 3.1 contract for the Developer OpenAPI.

FieldRequiredTypeDescription
openapiYesstringOpenAPI Specification version used by this contract.
infoYesobjectProduct, contract version, license, and purpose.
serversYesarray<object>Server base URLs declared by this contract.
securityYesarray<object>Default authentication requirements.
tagsYesarray<object>Operation groups exposed by this contract.
pathsYesobjectDocumented Developer OpenAPI paths and operations.
componentsYesobjectReusable schemas and security definitions.

Success Response Example ​

json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Focowiki Developer OpenAPI",
    "version": "0.7.47"
  },
  "servers": [
    {
      "url": "https://openapi.example.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Knowledge Bases"
    }
  ],
  "paths": {
    "/openapi/v2/knowledge-bases": {
      "get": {
        "operationId": "listKnowledgeBases",
        "summary": "List knowledge bases"
      },
      "post": {
        "operationId": "createKnowledgeBase",
        "summary": "Create a knowledge base"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {}
  }
}

Error Codes ​

The table below lists every error response documented for this operation.

HTTP StatusError CodeExplanation
401UNAUTHORIZEDThe Bearer API key is missing, malformed, unknown, revoked, or deleted.
429RATE_LIMITEDThe request exceeded the configured rate limits.
500INTERNAL_ERRORThe API encountered an internal error.
503DATABASE_REPOSITORY_UNAVAILABLEThe data required by this operation is temporarily unavailable.

Next Steps ​