Skip to content
Navigation

Open a realtime community session

POST
https://api.nicer.travel/community/auth

Opens a session with the realtime service behind the community for the caller: it names them, the agency the request acts for and the channels they are in, always with the agency-wide group, and answers the service's own reply, which holds a session token the portal's realtime client uses as it is. The session carries that agency's channels only. Any member of the agency may call it. Errors: 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Returns

200

OK

JSON
  • body
    string
    required

    The realtime service's answer as text, holding the caller's session token: the portal hands it to its realtime client unchanged.

  • status
    integer
    required

    The HTTP status the realtime service answered with.

    maximum: 9007199254740991 · minimum: -9007199254740991

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close