openapi: 3.0.0 info: contact: email: hello@unified.to url: https://unified.to/contact description: One API to Rule Them All termsOfService: https://unified.to/tos title: Unified.to account target API version: '1.0' servers: - description: North American data region url: https://api.unified.to - description: European data region url: https://api-eu.unified.to - description: Australian data region url: https://api-au.unified.to security: - jwt: [] tags: - name: target paths: /ads/{connection_id}/target: get: operationId: listAdsTargets parameters: - in: query name: limit required: false schema: type: number - in: query name: offset required: false schema: type: number - description: Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format) in: query name: updated_gte required: false schema: type: string - in: query name: sort required: false schema: type: string - in: query name: order required: false schema: type: string - description: Query string to search. eg. email address or name in: query name: query required: false schema: type: string - description: The org ID to filter by (reference to AdsOrganization) in: query name: org_id required: false schema: type: string - in: query name: type required: false schema: type: string - description: Fields to return in: query name: fields required: false schema: items: enum: - id - name - type - is_active - parent_id - raw type: string type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/AdsTargets' description: Successful security: - jwt: [] summary: List All Targets tags: - target /ads/{connection_id}/target/{id}: get: operationId: getAdsTarget parameters: - description: Fields to return in: query name: fields required: false schema: items: enum: - id - name - type - is_active - parent_id - raw type: string type: array type: array - description: 'Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar' in: query name: raw required: false schema: type: string - description: ID of the connection in: path name: connection_id required: true schema: type: string - description: ID of the Target in: path name: id required: true schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/AdsTarget' description: Successful security: - jwt: [] summary: Retrieve a Target tags: - target components: schemas: AdsTargets: items: $ref: '#/components/schemas/AdsTarget' type: array AdsTarget: description: Targeting search result (for ads_target list endpoint) properties: id: type: string is_active: type: boolean name: type: string parent_id: type: string raw: additionalProperties: true type: object type: enum: - INTEREST - BEHAVIOR - LOCALE - COUNTRY - REGION - CITY - ZIP - US_DMA - TOPIC - USER_LIST - AGE_RANGE - GENDER - CARRIER - DEVICE_MODEL - OS_VERSION type: string x-speakeasy-unknown-values: allow required: - id type: object securitySchemes: jwt: in: header name: authorization type: apiKey externalDocs: description: API Documentation url: https://docs.unified.to