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 just airbnb.
  • You started a Connect session for airbnb, then tried to complete it as booking.
  • 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

  1. Check the supported provider slugs in the PMS Coverage page.
  2. Use lowercase, no spaces, no version suffix: `airbnb`, `booking`, `vrbo`, `hostaway`, etc.
  3. 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.

Hit an error that isn't covered? Email hello@repull.dev with the request id from the response headers.

AI