no_connection
No active channel connection for the requested provider in this workspace.
HTTP 409The resource is not in a state that allows this operation.
When it fires
You called a channel-specific endpoint (e.g. /v1/channels/airbnb/… or /v1/channels/booking/…) but the workspace has not connected an account for that channel yet.
Response shape
Every Repull error follows the same envelope. The code is stable and safe to switch on.
{
"error": {
"code": "no_connection",
"message": "<human-readable explanation of what went wrong>",
"docs_url": "https://repull.dev/docs/errors/no_connection"
}
}How to fix
- Confirm the channel is connected from /dashboard/channels.
- If it is not, start a Connect session: `POST /v1/connect/{provider}` with a `redirectUrl` and walk the user through the returned URL. See the Connect docs.
- For credential-based channels (Booking.com, VRBO), provide the credentials in the Connect call directly.
- Once the connection is `active`, retry the original request.
Examples
curl
# Bad: no Airbnb connection in this workspace
curl https://api.repull.dev/v1/channels/airbnb/listings \
-H "Authorization: Bearer sk_test_YOUR_KEY"
# {
# "error": {
# "code": "no_connection",
# "message": "No active Airbnb connection for this workspace."
# }
# }
# Recovery: start a Connect session
curl -X POST https://api.repull.dev/v1/connect/airbnb \
-H "Authorization: Bearer sk_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"redirectUrl": "https://your-app.com/callback"}'TypeScript
import { Repull } from '@repull/sdk'
const repull = new Repull({ apiKey: process.env.REPULL_KEY! })
try {
await repull.channels.airbnb.listings.list()
} catch (err: any) {
if (err.code === 'no_connection') {
// Trigger the connect flow in your UI
const session = await repull.connect.create({
provider: 'airbnb',
redirectUrl: 'https://your-app.com/callback',
})
return { needsConnect: true, redirectTo: session.url }
}
throw err
}If you're an AI agent
The user has not connected this channel yet. Stop, do not retry. Tell the user they need to connect the channel first, and offer them the Connect flow URL (POST /v1/connect/{provider}).
Related
- Error reference — the full table of error codes
- Using Repull from AI agents — patterns for handling errors in agent loops
- Connect (multi-channel)
- OAuth Connect
Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.
AI