> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ziplined.io/llms.txt
> Use this file to discover all available pages before exploring further.

# The routing rules of one destination



## OpenAPI

````yaml /openapi.json get /v1/integrations/{id}/rules
openapi: 3.1.0
info:
  title: Ziplined API
  version: 1.0.0
  description: >-
    LinkedIn engagement data about people, companies and posts. The workspace
    comes from the credential; lists page with `limit` and `next_cursor`.
servers:
  - url: https://api.ziplined.io
    description: Production
security: []
tags:
  - name: People
    description: The people in your workspace, and what you sent them.
  - name: Companies
    description: The companies those people work at.
  - name: Posts
    description: Your own posts and their numbers.
  - name: Engagements
    description: One act by one person on one post.
  - name: Insights
    description: Period against period, and the series behind it.
  - name: Audiences
    description: Named lists of people, and their membership.
  - name: Sources
    description: What your radar collects from.
  - name: Integrations
    description: Webhook and Slack destinations, and routing rules.
paths:
  /v1/integrations/{id}/rules:
    get:
      tags:
        - Integrations
      summary: The routing rules of one destination
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
            description: How many rows to return. Maximum 200.
          required: false
          description: How many rows to return. Maximum 200.
          name: limit
          in: query
        - schema:
            type: string
            description: 'The `next_cursor` from the previous page. Opaque: do not parse it.'
          required: false
          description: 'The `next_cursor` from the previous page. Opaque: do not parse it.'
          name: cursor
          in: query
      responses:
        '200':
          description: A page of rules, the inactive ones included.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/RoutingRule'
                  next_cursor:
                    type: string
                    nullable: true
                required:
                  - data
                  - next_cursor
        '400':
          description: A filter value is invalid, or this resource has no such filter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Wrong workspace, or the credential lacks the required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such record, or it does not belong to this workspace.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    RoutingRule:
      type: object
      properties:
        id:
          type: string
        integration_id:
          type: string
        name:
          type: string
        event:
          type: string
          example: new_engagement
        is_active:
          type: boolean
        audience_id:
          type: string
          nullable: true
          description: Null is everyone.
        filter:
          type: object
          nullable: true
          additionalProperties:
            nullable: true
        min_interval_minutes:
          type: number
          description: >-
            How long this rule waits between two messages: 0 immediate, 60
            hourly, 1440 daily.
        send_hour_utc:
          type: number
          nullable: true
          description: >-
            The whole hour in UTC after which a daily send may go out. Only used
            at 1440.
        watermark_at:
          type: string
        created_at:
          type: string
      required:
        - id
        - integration_id
        - name
        - event
        - is_active
        - audience_id
        - filter
        - min_interval_minutes
        - send_hour_utc
        - watermark_at
        - created_at
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.