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

# Poll funding updates | Agent guide

> Retrieve a funding feed, consume cursor pages, and persist a polling checkpoint.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/recipes/poll-funding-updates.md)

Read Deepline's global [funding feed](https://deepline.com/docs/funding-data.md) and keep progress in your
own system. This public pull feed requires no Monitor deployment. Each request
is metered, including later cursor pages.

## 1. Read the first page

Inspect the current contract and price:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe deepline_native_get_funding_updates --json
```

This request returns up to the 100 most recent discoveries:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
FUNDING_PAYLOAD='{"limit":100}'
deepline run deepline_native_get_funding_updates --input "$FUNDING_PAYLOAD" --json-out funding-page-1.json
```

For a later poll, include your saved `since` timestamp in the first request.
`since` filters discovery time, not the funding announcement date. The feed
has no company, industry, round-stage, or source filter.

## 2. Consume every cursor page

Persist each successful page before continuing. When `data.has_more` is true,
pass that response's exact `data.next_cursor` as `cursor`:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run deepline_native_get_funding_updates \
  --input '{"cursor":"<data.next_cursor>","limit":100}' \
  --json-out funding-page-2.json
```

Replace the placeholder with the prior page's cursor. Keep it unchanged.
Continue until `has_more` is false. Retain failed pages as unfinished work;
a successful first page does not complete the read.

## 3. Advance the checkpoint after processing

Store the original discovery-time boundary, successful pages, and next cursor.
Use `update_id` to deduplicate discoveries across repeated or overlapping reads.
`since` is inclusive, so the boundary can return an already processed update.

Advance the saved discovery-time checkpoint only after every page has been
stored and processed. Preserve it when any page fails. Funding announcements
and response times are not substitutes for the discovery boundary.

The feed creates neither a schedule nor a Monitor. For recurrence, own the
checkpoint and retry policy in a [Play or scheduler](https://deepline.com/docs/sdk-v2/webhooks-and-schedules.md).
Choose the interval for your review needs; no publication cadence is promised.
Use [Review account signals](https://deepline.com/docs/plays/signal-playbooks.md#fundraising-signals) to
qualify the retrieved events before account actions.

## Call the API

> [accordion] HTTP requests and cursor continuation
>
> Use an org-scoped API key from a trusted server or worker. Do not expose
> the key in browser code.
>
> ```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
> FUNDING_REQUEST='{"payload":{"limit":100}}'
>
> curl -fsS -X POST \
>   "https://code.deepline.com/api/v2/integrations/deepline_native_get_funding_updates/execute" \
>   -H "Authorization: Bearer $DEEPLINE_API_KEY" \
>   -H "Content-Type: application/json" \
>   --data-binary "$FUNDING_REQUEST" > funding-page-1.json
> ```
>
> For the next page, persist the prior response and build the request from its
> cursor. Only run this when the prior response has `data.has_more: true`.
>
> ```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
> NEXT_CURSOR="$(jq -er '.data.next_cursor' funding-page-1.json)"
> FUNDING_REQUEST="$(jq -cn --arg cursor "$NEXT_CURSOR" '{payload: {cursor: $cursor, limit: 100}}')"
>
> curl -fsS -X POST \
>   "https://code.deepline.com/api/v2/integrations/deepline_native_get_funding_updates/execute" \
>   -H "Authorization: Bearer $DEEPLINE_API_KEY" \
>   -H "Content-Type: application/json" \
>   --data-binary "$FUNDING_REQUEST" > funding-page-2.json
> ```


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