{
  "opencollection": "1.0.0",
  "info": {
    "name": "Pipedrive API v1 Activities API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Activities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all activities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pipedrive.com/v1/activities",
            "params": [
              {
                "name": "filter_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities matching the specified filter are returned"
              },
              {
                "name": "ids",
                "value": "",
                "type": "query",
                "description": "Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response."
              },
              {
                "name": "owner_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored."
              },
              {
                "name": "deal_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities linked to the specified deal are returned. If filter_id is provided, this is ignored."
              },
              {
                "name": "lead_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities linked to the specified lead are returned. If filter_id is provided, this is ignored."
              },
              {
                "name": "person_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities whose primary participant is the given person are returned. If filter_id is provided, this is ignored."
              },
              {
                "name": "org_id",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities linked to the specified organization are returned. If filter_id is provided, this is ignored."
              },
              {
                "name": "done",
                "value": "",
                "type": "query",
                "description": "If supplied, only activities with specified 'done' flag value are returned"
              },
              {
                "name": "updated_since",
                "value": "",
                "type": "query",
                "description": "If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z."
              },
              {
                "name": "updated_until",
                "value": "",
                "type": "query",
                "description": "If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z."
              },
              {
                "name": "sort_by",
                "value": "",
                "type": "query",
                "description": "The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `due_date`."
              },
              {
                "name": "sort_direction",
                "value": "",
                "type": "query",
                "description": "The sorting direction. Supported values: `asc`, `desc`."
              },
              {
                "name": "include_fields",
                "value": "",
                "type": "query",
                "description": "Optional comma separated string array of additional fields to include"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "For pagination, the marker (an opaque string value) representing the first item on the next page"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Returns data about all activities."
        },
        {
          "info": {
            "name": "Add a new activity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.pipedrive.com/v1/activities",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Adds a new activity."
        },
        {
          "info": {
            "name": "Get details of an activity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.pipedrive.com/v1/activities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the activity"
              },
              {
                "name": "include_fields",
                "value": "",
                "type": "query",
                "description": "Optional comma separated string array of additional fields to include"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Returns the details of a specific activity."
        },
        {
          "info": {
            "name": "Update an activity",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.pipedrive.com/v1/activities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the activity"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Updates the properties of an activity."
        },
        {
          "info": {
            "name": "Delete an activity",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.pipedrive.com/v1/activities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the activity"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "x-api-token",
              "value": "{{x-api-token}}",
              "placement": "header"
            }
          },
          "docs": "Marks an activity as deleted. After 30 days, the activity will be permanently deleted."
        }
      ]
    }
  ],
  "bundled": true
}