openapi: 3.0.3 info: title: TalkIt Website text session tokens version: 1.0.0 description: Historical Website text session-token contract reconstructed from the recorded TalkIt Dedicated commit. servers: - url: https://your-dedicated-domain.example paths: /channels-text/public/session-tokens: post: operationId: createWebsiteTextSessionToken summary: Create a Website text session token security: - basicAuth: [] responses: '200': description: Text session token created. content: application/json: schema: $ref: '#/components/schemas/SuccessEnvelope' example: success: true data: sessionToken: short-lived-one-use-token websocketUrl: wss://your-dedicated-domain.example/channels-text/public/_ws expiresAt: '2026-08-03T12:00:00.000Z' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/ServerError' components: securitySchemes: basicAuth: type: http scheme: basic responses: Unauthorized: description: Missing or invalid Website integration credentials. content: application/json: schema: $ref: '#/components/schemas/HttpError' example: status: 401 statusText: Unauthorized message: Basic authorization credentials are required. Forbidden: description: Website integration or linked text agent unavailable. content: application/json: schema: $ref: '#/components/schemas/HttpError' example: status: 403 statusText: Forbidden message: The linked custom agent must have text mode enabled. NotFound: description: Website integration or linked resource not found. content: application/json: schema: $ref: '#/components/schemas/HttpError' example: status: 404 statusText: Not Found message: Website integration was not found. ServerError: description: Server error. content: application/json: schema: $ref: '#/components/schemas/HttpError' example: status: 500 statusText: Internal Server Error message: Unable to create a Website text session token. schemas: WebsiteTextSessionToken: type: object additionalProperties: false required: - sessionToken - websocketUrl - expiresAt properties: sessionToken: type: string websocketUrl: type: string format: uri expiresAt: type: string format: date-time SuccessEnvelope: type: object additionalProperties: false required: - success - data properties: success: type: boolean enum: - true data: $ref: '#/components/schemas/WebsiteTextSessionToken' HttpError: type: object additionalProperties: false required: - status - statusText - message properties: status: type: integer minimum: 100 maximum: 599 statusText: type: string message: type: string