invalid_provider
The provider in the URL or session does not match the request.
HTTP 400The request was malformed.
When it fires
The provider in the URL is not one Repull supports, or it does not match the one bound to the resource. Examples:
- You called
/v1/connect/airbnbpro— the slug is justairbnb. - You started a Connect session for
airbnb, then tried to complete it asbooking. - You sent a Channel-specific operation through the wrong namespace (e.g. an Airbnb listing id to
/v1/channels/booking/…).
Response shape
Every Repull error follows the same envelope. The code is stable and safe to switch on.
{
"error": {
"code": "invalid_provider",
"message": "<human-readable explanation of what went wrong>",
"docs_url": "https://repull.dev/docs/errors/invalid_provider"
}
}How to fix
- Check the supported provider slugs in the PMS Coverage page.
- Use lowercase, no spaces, no version suffix: `airbnb`, `booking`, `vrbo`, `hostaway`, etc.
- For session callbacks, pass the same provider slug you used to create the session.
Examples
curl
# Bad: misspelled provider
curl -X POST https://api.repull.dev/v1/connect/airbnbpro \
-H "Authorization: Bearer sk_test_YOUR_KEY"
# {
# "error": {
# "code": "invalid_provider",
# "message": "Unknown provider: airbnbpro"
# }
# }
# Good
curl -X POST https://api.repull.dev/v1/connect/airbnb \
-H "Authorization: Bearer sk_test_YOUR_KEY"TypeScript
import { Repull } from '@repull/sdk'
const repull = new Repull({ apiKey: process.env.REPULL_KEY! })
const session = await repull.connect.create({
provider: 'airbnb', // lowercase slug, no version
redirectUrl: 'https://your-app.com/callback',
})If you're an AI agent
The provider slug is wrong or does not match the resource. Use the canonical lowercase slug (airbnb / booking / vrbo / hostaway / …) from the PMS Coverage page and retry.
Related
- Error reference — the full table of error codes
- Using Repull from AI agents — patterns for handling errors in agent loops
- PMS Coverage
Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.
AI