Quick start: your first API call
Create an API key, make your first Admin API call with curl or an SDK, and connect an MCP client, in about five minutes. Everything you need is on this page.
1. Create an API key
No workspace yet? Ask us for a sandbox key. We set up a sandbox workspace for you: it's never billed, and it comes loaded with sample publishers, placements, an advertiser, line items and creatives. We send you its key, workspace ID and an MCP config, so you can start at step 2.
- Sign in to the console and open Settings › API keys & webhooks.
- Choose New API key, name it, and give it the Viewer role for this guide. Add Editor later when your integration writes.
- Copy the secret. It's shown once. Copy the workspace ID shown above the key list too.
export RIPTIDE_API_KEY=rt_key_… # the secret, shown once
export RIPTIDE_TENANT_ID=… # the workspace ID shown beside your keys Keep the key on a server. Never put it in browser or app code.
2. Call the API
List the publishers in your workspace:
curl -s "https://app.riptideads.com/v1/tenants/$RIPTIDE_TENANT_ID/publishers?limit=5" \
-H "X-Riptide-Api-Key: $RIPTIDE_API_KEY" You get a page of results. Pass next_cursor back as cursor to get the next page:
{
"items": [
{ "id": "…", "public_id": "acme-pub", "name": "Acme", "status": "ACTIVE", … }
],
"next_cursor": "…"
}
A new workspace returns an empty items list, which still means the key works.
A 401 means the key is wrong or revoked, and a 403 means the key lacks the role or names
another workspace. See errors and rate limits.
3. The same call from an SDK
The SDKs add retries, idempotency keys, typed errors and pagination.
TypeScript
npm install @riptide/admin-client
import { AdminClient } from "@riptide/admin-client";
const rt = new AdminClient({ baseUrl: "https://app.riptideads.com", apiKey: process.env.RIPTIDE_API_KEY });
const tenant_id = process.env.RIPTIDE_TENANT_ID;
for await (const pub of rt.pages("listPublishers", { path: { tenant_id } })) console.log(pub.public_id); Python
pip install riptide-admin
import os
from riptide_admin import Client
from riptide_admin_client.api.supply import list_publishers
rt = Client("https://app.riptideads.com", api_key=os.environ["RIPTIDE_API_KEY"])
for pub in rt.paginate(list_publishers, os.environ["RIPTIDE_TENANT_ID"]):
print(pub.public_id) Go
go get riptide.dev/clients/go/admin
cl, err := admin.New("https://app.riptideads.com", admin.WithAPIKey(os.Getenv("RIPTIDE_API_KEY")))
if err != nil { return err }
r, err := cl.ListPublishersWithResponse(ctx, os.Getenv("RIPTIDE_TENANT_ID"), &adminv1.ListPublishersParams{})
if err != nil { return err }
if e := admin.ErrorOf(r.StatusCode(), r.Body); e != nil { return e }
for _, p := range r.JSON200.Items { fmt.Println(p.PublicId) } 4. Connect an AI agent over MCP
The MCP gateway is https://agentgw.riptideads.com. A workspace key uses the
/tenant endpoint, and its tools follow the key's roles. With Claude Code:
claude mcp add --transport http riptide https://agentgw.riptideads.com/tenant \
--header "X-Riptide-Api-Key: $RIPTIDE_API_KEY" For other clients that read a JSON configuration:
{
"mcpServers": {
"riptide": {
"type": "http",
"url": "https://agentgw.riptideads.com/tenant",
"headers": {
"X-Riptide-Api-Key": "rt_key_…"
}
}
}
} Or check it by hand with curl, which lists the tools your key can call:
GW=https://agentgw.riptideads.com/tenant
H=(-H "X-Riptide-Api-Key: $RIPTIDE_API_KEY" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream")
# 1. Open a session and keep the Mcp-Session-Id header it returns
curl -si "$GW" "${H[@]}" -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"quickstart","version":"1.0.0"}}}' | grep -i mcp-session-id
SID=… # the value printed above
# 2. List the tools your key can call
curl -s "$GW" "${H[@]}" -H "Mcp-Session-Id: $SID" -H "MCP-Protocol-Version: 2025-06-18" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' Ask your agent to call riptide.session.whoami to confirm the workspace, roles and features it sees.
5. Next steps
- Admin API conventions: authentication, idempotency and pagination.
- API reference: every operation and schema, and the OpenAPI file.
- Errors and rate limits: every error code and when to retry.
- MCP tools: endpoints, toolsets, OAuth and signed agent requests.
- Getting started: set up a placement, campaign or buyer in the console.