Skip to main content

Options

Provide either apiKey or accessToken.

Resources

Generated from OpenAPI tags:
Methods map from POST action paths, for example:
  • POST /api/v1/tickets/create → sayless.tickets.create(body)
  • POST /api/v1/tickets/list → sayless.tickets.list(body)
  • POST /api/v1/teams/list → sayless.teams.list(body)
  • POST /api/v1/teams/info → sayless.teams.info(body)
  • POST /api/v1/messages/send_message → sayless.messages.sendMessage(body)
  • POST /api/v1/companies/contacts/create → sayless.companies.contactsCreate(body)

Request options

Every resource method accepts an optional second argument:
Use idempotencyKey on create / sendMessage retries so the gateway can return the cached success body (24h). Concurrent reuse while in flight throws IdempotencyConflictError (HTTP 409).

Mutation payloads

Public writes return payload objects with success, presented data (or entityId on delete), and sync ack fields:
Deletes:

Lists and fetchNext

List helpers return a Connection with nodes (from wire data) and cursor pagination:

Errors

Failed responses throw typed errors:

Webhooks

Signing is HMAC-SHA256(secret, "{timestamp}.{rawBody}") hex, matching gateway delivery headers Sayless-Signature and Sayless-Timestamp.