openapi: 3.0.1 info: title: SimpleTexting Campaigns Contact Segments API description: The SimpleTexting v2 REST API lets developers send SMS and MMS messages, manage contacts and contact lists, run bulk campaigns, upload media, read custom fields and segments, and subscribe to webhook events. The API is organized around REST, uses standard HTTP verbs and response codes, accepts and returns JSON, and is authenticated with a bearer token in the Authorization header. termsOfService: https://simpletexting.com/terms-of-service/ contact: name: SimpleTexting Support url: https://simpletexting.com/api/ email: support@simpletexting.com version: '2.0' servers: - url: https://api-app2.simpletexting.com/v2 description: SimpleTexting v2 production API security: - bearerAuth: [] tags: - name: Contact Segments description: Read dynamic contact segments. paths: /api/contact-segments: get: operationId: getAllSegments tags: - Contact Segments summary: Get all Segments responses: '200': description: A list of contact segments. components: securitySchemes: bearerAuth: type: http scheme: bearer description: 'Send the API token as a bearer token in the Authorization header: `Authorization: Bearer `. Generate a token in the SimpleTexting web app under Settings.'