openapi: 3.0.3 info: title: Wootric Declines Segments API description: 'REST API for managing end users, survey responses, declines, settings, metrics, segments, and email survey distribution across NPS, CSAT, and CES programs. Wootric (now part of InMoment) supports multi-region deployments across US, EU, and AU environments. ' version: 1.0.0 contact: name: Wootric API Documentation url: https://docs.wootric.com/api/ servers: - url: https://api.wootric.com description: US production endpoint - url: https://api.eu.wootric.com description: EU production endpoint - url: https://api.au.wootric.com description: AU production endpoint security: - BearerAuth: [] tags: - name: Segments description: Access segment definitions paths: /v1/segments: get: operationId: listSegments summary: Get all segments tags: - Segments responses: '200': description: Array of segment objects content: application/json: schema: type: array items: $ref: '#/components/schemas/Segment' '401': $ref: '#/components/responses/Unauthorized' components: schemas: Segment: type: object properties: name: type: string description: Segment name data_type: type: string description: Data type of the segment property created_at: type: integer description: Unix timestamp of segment creation Error: type: object properties: error: type: string description: Error message status: type: integer description: HTTP status code responses: Unauthorized: description: Unauthorized - invalid or missing token content: application/json: schema: $ref: '#/components/schemas/Error' securitySchemes: BearerAuth: type: http scheme: bearer description: 'OAuth 2.0 Bearer token. Obtain via password, client_credentials, or refresh_token grant. Tokens expire after 2 hours. '