Fetchply Docs

API Reference — Programmatic Access to Your AI Chatbot

REST API for your Fetchply AI chatbot — manage agents, send messages, list conversations, manage knowledge, and configure webhooks. Upgrade from the free plan to Starter for API access.

Overview

Fetchply provides a REST API for programmatic access to your agents, conversations, knowledge sources, and webhooks. API access is available on Starter and higher plans.

Authentication

Create an API key from Dashboard → Account → API Keys and include it as a Bearer token with every request.

curl https://fetchply.com/api/v1/agents \
  -H "Authorization: Bearer fp_your_api_key"
const res = await fetch('https://fetchply.com/api/v1/agents', {
  headers: {
    Authorization: 'Bearer fp_your_api_key',
  },
});

Endpoints

Response Format

Successful responses look like:

{
  "success": true,
  "data": {}
}

Error Codes

CodeMeaning
200Success
201Created
400Bad request — check your input
401Unauthorized — check your API key
403Forbidden — your plan doesn't include this feature
404Not found — check the ID
429Too many requests — wait and try again
500Server error — try again later

Rate Limits

API requests are limited per key. When you hit the limit, the response includes a Retry-After header telling you how many seconds to wait.

API keys should never be included in code that runs in a visitor's browser or a mobile app. Keep them in secure, server-side environments only.