> ## 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 campaigns or lists of a connected app account

> Lists the campaigns (HeyReach, Instantly) or lists (Waalaxy) of one connected outreach account. kind: list gives the lead lists of a HeyReach account. A list is the safer target. A person in a lead list gets no message until the user adds the list to a campaign in HeyReach. Each one has its id, name, kind and status. A view syncs to one of them with save_sync: the account as destination and the id here as target. This tool does not list Clay tables and Google Sheets tabs. The user chooses those in the app, through the sync_setup_urls of the view.

Use when: The user wants a view to go to a specific outreach campaign or list. Find the account under accounts in list_destinations first.

Do not use for: Connecting an account (use connect_destination instead) or webhook, email and Slack destinations (use list_destinations instead).

Example: {"account":"00000000-0000-4000-8000-000000000501"}



## OpenAPI

````yaml /openapi.json get /v1/integrations/accounts/{id}/targets
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 `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: Views
    description: The saved views of the app, and who is in a hand-picked one.
  - name: Audiences
    description: The scored target groups, and their membership.
  - name: ICP
    description: 'Who you sell to: the rules every person is scored against.'
  - name: Sources
    description: What your radar collects from.
  - name: Account
    description: Who is asking, what is set up, and what is next.
  - name: Credits
    description: What is left to spend on sources, and when it resets.
  - name: Integrations
    description: 'Where syncs send people: webhook, email, Slack and app destinations.'
paths:
  /v1/integrations/accounts/{id}/targets:
    get:
      tags:
        - Integrations
      summary: The campaigns or lists of a connected app account
      description: >-
        Lists the campaigns (HeyReach, Instantly) or lists (Waalaxy) of one
        connected outreach account. kind: list gives the lead lists of a
        HeyReach account. A list is the safer target. A person in a lead list
        gets no message until the user adds the list to a campaign in HeyReach.
        Each one has its id, name, kind and status. A view syncs to one of them
        with save_sync: the account as destination and the id here as target.
        This tool does not list Clay tables and Google Sheets tabs. The user
        chooses those in the app, through the sync_setup_urls of the view.


        Use when: The user wants a view to go to a specific outreach campaign or
        list. Find the account under accounts in list_destinations first.


        Do not use for: Connecting an account (use connect_destination instead)
        or webhook, email and Slack destinations (use list_destinations
        instead).


        Example: {"account":"00000000-0000-4000-8000-000000000501"}
      parameters:
        - schema:
            type: string
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
            description: >-
              The id of a connected app account, from accounts in
              list_destinations.
          required: true
          description: >-
            The id of a connected app account, from accounts in
            list_destinations.
          name: id
          in: path
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 100
          required: false
          name: limit
          in: query
        - schema:
            type: string
            enum:
              - campaign
              - list
            description: >-
              HeyReach only: list for its lead lists, campaign for its
              campaigns. Left out: campaigns (HeyReach, Instantly) or lists
              (Waalaxy).
          required: false
          description: >-
            HeyReach only: list for its lead lists, campaign for its campaigns.
            Left out: campaigns (HeyReach, Instantly) or lists (Waalaxy).
          name: kind
          in: query
        - schema:
            type: string
            description: The `cursor` from the previous page.
          required: false
          description: The `cursor` from the previous page.
          name: cursor
          in: query
      responses:
        '200':
          description: The result
          content:
            application/json:
              schema:
                type: object
                properties:
                  targets:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Pass this as target to save_sync, with this account
                            as destination.
                        name:
                          type: string
                        kind:
                          type: string
                          enum:
                            - campaign
                            - list
                        status:
                          type: string
                          enum:
                            - active
                            - paused
                            - unknown
                          description: A sync can go only to an active campaign or list.
                      required:
                        - id
                        - name
                        - kind
                        - status
                  total:
                    type: integer
                    description: >-
                      How many campaigns or lists were read from the app, at
                      most 10 of its pages.
                  cursor:
                    type: string
                    nullable: true
                    description: >-
                      Pass this as `cursor` to get the next page. Null on the
                      last page.
                  truncated:
                    type: boolean
                    description: >-
                      True when there are more rows than this page shows, also
                      when the app has more than 10 pages.
                required:
                  - targets
                  - total
                  - cursor
                  - truncated
        '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'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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