ankr Tasks API

Time-based and event-triggered automation tasks.

Operations 4

GET /v1/tasks Ankr List Automation Tasks #
POST /v1/tasks Ankr Create Automation Task #
GET /v1/tasks/{taskId} Ankr Get Automation Task #
DELETE /v1/tasks/{taskId} Ankr Delete Automation Task #

Documentation

Specifications

Schemas & Data

Other Resources

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/ankr-tasks-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

ankr-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ankr Contract Automation Tasks API
  description: 'Ankr Contract Automation lets developers execute on-chain contract functions based

    on time-based (CRON) and event-driven (custom-logic) triggers. The capability is

    operated through the Ankr Automation Dashboard and runs against Ankr''s

    decentralized node infrastructure. As of May 2026, BNB Smart Chain is the only

    supported network — additional chains are on the roadmap.

    '
  version: 1.0.0
  contact:
    name: Ankr
    url: https://www.ankr.com
    email: support@ankr.com
  license:
    name: Ankr Terms of Service
    url: https://www.ankr.com/terms/
servers:
- url: https://www.ankr.com/automation/api
  description: Ankr Automation control plane (dashboard-managed).
security:
- BearerAuth: []
tags:
- name: Tasks
  description: Time-based and event-triggered automation tasks.
paths:
  /v1/tasks:
    get:
      summary: Ankr List Automation Tasks
      description: List automation tasks for the authenticated account.
      operationId: listTasks
      tags:
      - Tasks
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Task'
    post:
      summary: Ankr Create Automation Task
      description: Create a new time-based or event-triggered automation task targeting a deployed contract.
      operationId: createTask
      tags:
      - Tasks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTaskRequest'
      responses:
        '201':
          description: Task created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
  /v1/tasks/{taskId}:
    get:
      summary: Ankr Get Automation Task
      description: Retrieve a single automation task.
      operationId: getTask
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/TaskId'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
    delete:
      summary: Ankr Delete Automation Task
      description: Cancel and delete an automation task.
      operationId: deleteTask
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/TaskId'
      responses:
        '204':
          description: Task deleted.
components:
  parameters:
    TaskId:
      name: taskId
      in: path
      required: true
      schema:
        type: string
  schemas:
    CreateTaskRequest:
      type: object
      required:
      - chain
      - contractAddress
      - functionSignature
      - trigger
      properties:
        chain:
          type: string
          enum:
          - bsc
        contractAddress:
          type: string
        functionSignature:
          type: string
        abi:
          type: array
          items: {}
        trigger:
          oneOf:
          - $ref: '#/components/schemas/TimeTrigger'
          - $ref: '#/components/schemas/EventTrigger'
    Task:
      type: object
      properties:
        id:
          type: string
        chain:
          type: string
        contractAddress:
          type: string
        functionSignature:
          type: string
        trigger:
          type: object
        status:
          type: string
          enum:
          - pending
          - active
          - paused
          - completed
          - failed
        balance:
          type: string
        created:
          type: string
          format: date-time
    EventTrigger:
      type: object
      required:
      - type
      - condition
      properties:
        type:
          type: string
          enum:
          - event
        condition:
          type: string
          description: Solidity condition exposed via IAutomateCompatible.
    TimeTrigger:
      type: object
      required:
      - type
      - schedule
      properties:
        type:
          type: string
          enum:
          - time
        schedule:
          type: string
          description: CRON expression.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer