Skip to main content
Yanok Yanok

API Reference

Yanok AI REST API v1 Documentation

REST API Version v1

Overview

The Yanok AI API provides programmatic access to the platform's workflow automation and AI agent capabilities.

Base URL

https://api.yanok.ai/v1

Content Type

application/json

Authentication

Bearer Token

Authentication

All API requests require a Bearer token. Include it in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

Generate API keys from Settings β†’ API Keys in your dashboard.

Endpoints

GET /pipelines

List Pipelines

Retrieve a paginated list of all pipelines accessible to the authenticated user.

Parameters

NameInTypeRequiredDescription
pagequeryintegerNoPage number for pagination
limitqueryintegerNoNumber of items per page

Responses

200 Success - Returns array of Pipeline objects
401 Unauthorized - Access token invalid or missing
GET /pipelines/{id}

Get Pipeline

Retrieve detailed information about a specific pipeline by its unique identifier.

Parameters

NameInTypeRequiredDescription
idpathstring (UUID)YesUnique identifier of the pipeline

Responses

200 Success - Returns Pipeline object
401 Unauthorized - Access token invalid or missing
404 Not Found - Pipeline not found

Data Models

Pipeline Schema

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier for the pipeline
titlestringNoHuman-readable name of the pipeline
descriptionstringNoDetailed description of the pipeline's purpose
account_idstringYesAccount identifier owning this pipeline
created_atstring (ISO 8601)YesTimestamp when pipeline was created
updated_atstring (ISO 8601)YesTimestamp when pipeline was last updated
trigger_keystringYesUnique key used to trigger pipeline execution

Example Response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Data Processing Pipeline",
  "description": "Automated data processing and transformation workflow",
  "account_id": "acc_987654321",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-20T14:45:00Z",
  "trigger_key": "trigger_abc123xyz"
}

Error Handling

CodeDescriptionType
200OK - Request successfulsuccess
201Created - Resource createdsuccess
401Unauthorized - Invalid tokenerror
404Not Found - Resource not founderror
500Server Error - Internal errorerror

Rate Limiting & Best Practices

The API enforces rate limits per plan tier. Monitor response headers for current usage.

Best Practices

  • Cache responses when possible
  • Use pagination for large datasets
  • Handle errors gracefully

For additional support or questions about the API, please contact our developer support team.