Start with ready-made AI agents with instructions on how to manage them on the marketplace. Browse the library

Settings and Security

After this lesson you'll be able to trigger your agent from any external app, manage conversation sessions, and chain multiple agents via API calls.

ASCN Team
11 June 2026

API

ASCN Agent provides an API for integration with external systems: start conversations, send messages, and receive responses programmatically.

Settings and Security

Settings → API section — Base URL, authorization key, and a sample request

How to get API access

  1. Open Settings → API
  2. Copy the Base URL — it is unique to each workspace
  3. Copy the Authorization Key
  4. Use the key in the Authorization: Bearer ... header with every request

Basic example

curl -X POST "https://api.clawman.ascn.ai/api/v1/workspaces/{workspace_id}/session/{session_id}/messages" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {API_KEY}" \
  -d '{"content": "Check my email and send me a summary"}'

API methods

MethodEndpointDescription
POST/session/{session_id}/messagesSend a message and receive a streaming response

What is session_id: every conversation with an agent is a session. session_id is the unique identifier of a specific dialog. You can start a new session (new conversation) or continue an existing one by passing its ID. If you want to start a fresh conversation each time — generate a new UUID for session_id.

Use cases

Integration with your application. Send tasks to the agent from your product and receive results via the API.

Connecting multiple agents. There is no direct link between agents, but you can use the API as a bridge — one agent sends data to another via an API request.

Webhooks and automations. Connect ASCN Agent to Zapier, Make, or your own scripts via the API.

The Base URL and authorization key are tied to a specific workspace. Each agent has its own.

Credits

ASCN runs on credits — they are deducted every time the agent does something. There are two independent types.

Two types of credits

TypeWhat consumes them
Message creditsEvery chat message, scheduled task execution
Integration creditsCalls to Gmail, Calendar, Drive, and others; trigger activations; serverless functions

Both types are refreshed monthly according to your plan.

Where to check your balance

Your current credit balance is in your account on ascn.ai. See the Plan or Billing section in your account settings.

How to manage spending

The most expensive patterns:

  • A trigger on every new email in an active inbox — consumes integration credits with every incoming message
  • Frequent scheduled tasks (every 15 minutes) — consume message credits predictably, but quickly

How to reduce spending:

  • Replace triggers on frequent events with scheduled tasks — for example, check email once an hour instead of on every new message
  • For urgent notifications, keep a trigger only for VIP senders and include everyone else in a morning summary
  • Combine multiple checks into a single task (email + calendar in one run)
Scheduled tasks consume credits predictably — you know exactly how many runs per day. Triggers depend on activity in your connected services.

What happens when credits run out

  • The agent stops responding in chat and Telegram
  • Scheduled tasks stop running
  • Triggers stop firing

All data, settings, and history are preserved — once you top up your balance, everything resumes automatically.

Plans and top-ups

Current plans and top-up options are available on ascn.ai.

Build your first AI agent for free — it only takes a few minutes.
Get started for free
By continuing to use our site, you agree to the use of cookies.