openapi: 3.0.1 info: title: Marketo Engage Rest Approve Segments.json API description: Marketo exposes a REST API which allows for remote execution of many of the systems capabilities. From creating programs to bulk lead import, there are many options which allow fine-grained control of a Marketo instance. termsOfService: https://www.adobe.com/legal.html contact: name: Adobe Developer Relations url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/home email: developerfeedback@marketo.com license: name: API License Agreement url: https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/api-license version: '1.0' servers: - url: https://localhost:8080/ tags: - name: Segments.json paths: /rest/asset/v1/segmentation/{id}/segments.json: get: tags: - Segments.json summary: Marketo Get Segments For Segmentation description: 'Retrieves a list of segments inside the target segmentation. Required Permissions: Read-Only Assets, Read-Write Assets' operationId: getSegmentsForSegmentationUsingGET parameters: - name: id in: path description: id required: true schema: type: integer format: int32 - name: status in: query description: Status filter for draft or approved versions schema: type: string enum: - approved - draft - name: offset in: query description: Integer offset for paging schema: type: integer format: int32 - name: maxReturn in: query description: Maximum number of channels to return. Max 200, default 20 schema: type: integer format: int32 responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/ResponseOfSegmentsResponse' components: schemas: Error: required: - code - message type: object properties: code: type: string description: Error code of the error. See full list of error codes here message: type: string description: Message describing the cause of the error ResponseOfSegmentsResponse: type: object properties: errors: type: array items: $ref: '#/components/schemas/Error' requestId: type: string result: type: array items: $ref: '#/components/schemas/SegmentsResponse' success: type: boolean warnings: type: array items: type: string SegmentsResponse: required: - segmentationId type: object properties: createdAt: type: string description: Datetime the asset was created format: date-time description: type: string description: Description of the asset id: type: integer description: Id of the asset format: int64 name: type: string description: Name of the asset segmentationId: type: integer description: Id of the Segmentation format: int32 updatedAt: type: string description: Datetime the asset was most recently updated format: date-time url: type: string description: Url of the asset in the Marketo UI x-original-swagger-version: '2.0'