Quickstart

Send your LLM spans to Respan and monitor them in real-time

  1. Sign up — Create an account at platform.respan.ai
  2. Create an API key — Generate one on the API keys page
  3. Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page

Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.

1{
2 "mcpServers": {
3 "respan-docs": {
4 "url": "https://docs.respan.ai/mcp"
5 }
6 }
7}

What is span logging?

  1. Send a POST request to log your AI conversations
  2. See them appear instantly on your Respan platform

Use span logging API

1. Get your Respan API key

After you create an account on Respan, you can get your API key from the API keys page.

Create API key placeholder

2. Integrate Async Span Logging into your codebase

1import requests
2import json
3
4url = "https://api.respan.ai/api/request-logs/create/"
5payload = {
6 "model": "gpt-4o",
7 "log_type": "chat",
8 "input": json.dumps([
9 {
10 "role": "user",
11 "content": "How can I help a customer with a billing issue?"
12 }
13 ]),
14 "output": json.dumps({
15 "role": "assistant",
16 "content": "I'd be happy to help with billing issues. First, let me check your account details..."
17 }),
18 "customer_identifier": "support_agent_001"
19}
20
21headers = {
22 "Authorization": "Bearer YOUR_RESPAN_API_KEY",
23 "Content-Type": "application/json"
24}
25
26response = requests.post(url, headers=headers, json=payload)

3. Check your spans on the platform

After you integrate the async span logging into your codebase and send the request successfully, you can check your spans on the Spans page.

Logs page placeholder