Artificial Wit Template API

The template API from Artificial Wit — 3 operation(s) for template.

Operations 3

POST /template/{format} Render From Body #
GET /template/{route_name}/{data_id}/{format}/{template_id}/{language_id} Render From Db #
GET /template/{route_name}/{data_id}/{format}/{template_id} Render From Db #

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/artificialwit-com:artificialwit-com-template-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

artificialwit-com-template-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AI Agent Template API
  version: 1.0.0
tags:
- name: Template
paths:
  /template/{format}:
    post:
      tags:
      - Template
      summary: Render From Body
      description: 'Render a template supplied directly in the request body.


        The `format` path parameter controls the response type: html | pdf | json | mail.

        No database lookups are performed — template and data come entirely from the body.'
      operationId: render_from_body_template__format__post
      parameters:
      - name: format
        in: path
        required: true
        schema:
          type: string
          title: Format
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RenderRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Render From Body Template  Format  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /template/{route_name}/{data_id}/{format}/{template_id}/{language_id}:
    get:
      tags:
      - Template
      summary: Render From Db
      description: 'Fetch template + data from the database and render.


        Path: /template/{route_name}/{data_id}/{format}/{template_id}/{language_id}


        Steps:

        1. fn_get_page_by_route_name → resolves the data-binding RPC name

        2. fn_get_template_for_render → fetches header / body / footer strings

        3. binding RPC(p_id=data_id) → fetches the actual data record

        4. Renders via HandlebarsRenderer

        5. Returns the response in the requested format'
      operationId: render_from_db_template__route_name___data_id___format___template_id___language_id__get
      parameters:
      - name: route_name
        in: path
        required: true
        schema:
          type: string
          title: Route Name
      - name: data_id
        in: path
        required: true
        schema:
          type: string
          title: Data Id
      - name: format
        in: path
        required: true
        schema:
          type: string
          title: Format
      - name: template_id
        in: path
        required: true
        schema:
          type: integer
          title: Template Id
      - name: language_id
        in: path
        required: true
        schema:
          type: integer
          title: Language Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Render From Db Template  Route Name   Data Id   Format   Template Id   Language Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /template/{route_name}/{data_id}/{format}/{template_id}:
    get:
      tags:
      - Template
      summary: Render From Db
      description: 'Fetch template + data from the database and render.


        Path: /template/{route_name}/{data_id}/{format}/{template_id}/{language_id}


        Steps:

        1. fn_get_page_by_route_name → resolves the data-binding RPC name

        2. fn_get_template_for_render → fetches header / body / footer strings

        3. binding RPC(p_id=data_id) → fetches the actual data record

        4. Renders via HandlebarsRenderer

        5. Returns the response in the requested format'
      operationId: render_from_db_template__route_name___data_id___format___template_id__get
      parameters:
      - name: route_name
        in: path
        required: true
        schema:
          type: string
          title: Route Name
      - name: data_id
        in: path
        required: true
        schema:
          type: string
          title: Data Id
      - name: format
        in: path
        required: true
        schema:
          type: string
          title: Format
      - name: template_id
        in: path
        required: true
        schema:
          type: integer
          title: Template Id
      - name: language_id
        in: query
        required: false
        schema:
          type: integer
          default: 1064
          title: Language Id
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Render From Db Template  Route Name   Data Id   Format   Template Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    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
    TemplateModel:
      properties:
        page_body:
          type: string
          title: Page Body
        page_header:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Header
        page_footer:
          anyOf:
          - type: string
          - type: 'null'
          title: Page Footer
        page_orientation_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Page Orientation Id
        water_mark_text:
          anyOf:
          - type: string
          - type: 'null'
          title: Water Mark Text
        top_margin:
          anyOf:
          - type: integer
          - type: 'null'
          title: Top Margin
        right_margin:
          anyOf:
          - type: integer
          - type: 'null'
          title: Right Margin
        bottom_margin:
          anyOf:
          - type: integer
          - type: 'null'
          title: Bottom Margin
        left_margin:
          anyOf:
          - type: integer
          - type: 'null'
          title: Left Margin
      type: object
      required:
      - page_body
      title: TemplateModel
    RenderRequest:
      properties:
        template:
          $ref: '#/components/schemas/TemplateModel'
        data:
          anyOf:
          - additionalProperties: true
            type: object
          - items: {}
            type: array
          - type: 'null'
          title: Data
      type: object
      required:
      - template
      title: RenderRequest
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer