Skip to main content
View plugin source · Plugin ID · Plugin API 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.The push sample receives text records from a script so Quivr can read and index them.

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 to build an integration for a provider.

Before you start

Start the local Quivr stack with make dev. The offline push example 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 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. 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 until its state is resolved and it identifies the stored record. Revoke the token 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

X lists for a source that can receive provider webhooks.