Providers

Test a provider login

POST/streams/providers/test/

write Change: creates or edits. Scopes

Asks the provider about a login without saving anything: its status, connections and expiry, then how many channels, movies and TV shows it lists. Send id to test with a saved provider's password. Panel operators only.

Body

  • idinteger
  • kindstring

    Default: "xtream"

  • urlstringrequired
  • usernamestring
  • passwordstring

Response

200 OK

  • statusstringrequired
    • unknown - Not checked yet
    • ok - OK
    • wrong_login - Wrong login
    • expired - Expired
    • disabled - Disabled by provider
    • unreachable - Unreachable
    • off - Off

    One of: "unknown" "ok" "wrong_login" "expired" "disabled" "unreachable" "off"

  • status_detailstringrequired
  • connectionsobjectrequired
    • activeintegerrequiredcan be null
    • maxintegerrequiredcan be null
  • expires_atstring (date-time)requiredcan be null
  • expires_knownbooleanrequired

    Whether expires_at is what the provider said (null: never ends).

  • is_trialbooleanrequired
  • countsobjectrequiredcan be null

    How many channels, movies and TV shows it lists.

    • liveintegerrequired

      Channels.

    • moviesintegerrequired
    • seriesintegerrequired

      TV shows.

Errors

  • 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means