API Reference
APIs

APIs

REST API reference for managing API connections and schema imports.

Endpoints

MethodEndpointDescription
GET/apisList all APIs
POST/apisConnect a new API
GET/apis/:idGet API by ID
PATCH/apis/:idUpdate an API
DELETE/apis/:idDelete an API
POST/apis/:id/import-schemaImport API schema
POST/apis/:id/generate-toolsGenerate tools from schema
GET/apis/:id/operationsList parsed operations
GET/apis/:id/schemasList imported schemas

Connect an API

curl -X POST https://api.almyty.com/apis \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My REST API",
    "type": "openapi",
    "baseUrl": "https://api.example.com/v1",
    "description": "Example API for user management"
  }'

Parameters

ParameterTypeRequiredDescription
namestringYesHuman-readable name
typestringYesopenapi, graphql, soap, protobuf
baseUrlstringYesRoot URL of the API
descriptionstringNoDescription of what the API does

Response

{
  "success": true,
  "data": {
    "id": "api-uuid",
    "name": "My REST API",
    "type": "openapi",
    "baseUrl": "https://api.example.com/v1",
    "status": "active",
    "createdAt": "2026-03-01T10:00:00Z"
  }
}

Import Schema

Import an API schema to automatically discover operations.

curl -X POST https://api.almyty.com/apis/{id}/import-schema \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "schemaUrl": "https://api.example.com/v1/openapi.json",
    "generateTools": true
  }'

Import Options

ParameterTypeDescription
schemaUrlstringURL to fetch the schema from
schemaContentstringRaw schema content (alternative to URL)
generateToolsbooleanAuto-generate tools from operations (default: false)

Supported formats:

  • OpenAPI 3.x — JSON or YAML
  • GraphQL — Introspection result or SDL
  • SOAP — WSDL documents
  • Protobuf.proto definitions

Generate Tools

Create tools from parsed operations:

curl -X POST https://api.almyty.com/apis/{id}/generate-tools \
  -H "Authorization: Bearer $TOKEN"

Each operation becomes one tool with automatically inferred parameters, JSON Schema validation, and naming derived from the operation ID.

API Credentials

APIs can store authentication credentials for making requests to the target API:

curl -X POST https://api.almyty.com/apis/{id}/credentials \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "bearer_token",
    "credentials": {
      "token": "your-api-token"
    }
  }'

Credential types: api_key, bearer_token, basic_auth, oauth2.