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

# Push source sample

> Try sending versioned text records to Quivr with an instance token.

Sources

local only

v0.1.0

Needs Instance token

[View plugin source](https://github.com/The-Vibe-Company/quivr/tree/main/plugins/push-source) · Plugin ID `push-source` · Plugin API `>=0.12.0 <1.0.0`

The push sample receives records your script sends to the local stack.

![The push sample receives text records from a script so Quivr can read and index them.](https://mintcdn.com/thevibecompany/R_BoVln_OJmoIk9D/images/diagrams/plugin-push-source-sample.png?fit=max\&auto=format\&n=R_BoVln_OJmoIk9D\&q=85\&s=a56b7da535406006cb0e27ee70e28c66)

## What it does

Try sending a text record from a script to a local Quivr stack. The sample receives the request as soon as you send it. Use [Write a push source](https://docs.quivr.thevibecompany.co/plugins/push-source.md) to build an integration for a provider.

## Before you start

Start the local Quivr stack with `make dev`. The [offline push example](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md#prerequisites) lists the tools and permissions and shows how to export the local API URL and key.

## Enable it

**1. Create a sample instance**

Follow [Create a collection and source instance](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md#create-a-collection-and-source-instance) to create an `events` instance. Use an empty configuration object. The local stack already loads the sample.

**2. Issue an instance token**

Follow [Issue a token and push](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md#issue-a-token-and-push). Use the Quivr API key to issue the token and save the returned secret for the sender.

## Use it

### Send a record

In the offline example, send `key`, `revision`, `title` and `text` as JSON to `POST /v0/connectors/<connector_id>/api/records`. Authenticate with the instance token. Keep the same key for a correction and give it a new revision and `Idempotency-Key` header value.

The response is `202` with a receipt ID. [Read the receipt](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md#check-it-worked) until its state is `resolved` and it identifies the stored record. [Revoke the token](https://docs.quivr.thevibecompany.co/operate/receive-pushes.md#manage-tokens) when you finish.

## Settings

The sample has no source settings or third-party credentials. Its scheduled check reports channel health.

## What it produces

Quivr stores the title and text as a record under the key and revision you sent.

## Limits and troubleshooting

| Symptom | What to check |
| - | - |
| The push is refused | Use a valid token issued for the instance in the URL. Use the Quivr API key to issue the token and look up receipts. |
| The body is refused | Include all four fields as nonempty strings. Blank text is refused. |

## Related plugins

[X lists](https://docs.quivr.thevibecompany.co/plugins/x-list.md) for a source that can receive provider webhooks.


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