Skip to content
DocsOverview

Theme

Documentation

How to give your agents a UI on your phone with Nibify: the API and the SDK.

Get started

  • Quickstart

    Send a Request from your code, answer it on your phone, and read the Response back.

Concepts

  • Requests and notifications

    A Request waits for an answer and a Notification does not: two endpoints, and what each one accepts.

  • Threads

    One conversation per threadKey: how Messages are grouped, and what the person sees.

  • Lifecycle and expiry

    The states of a Request, the receipts of a Notification, and an expiry that happens only when you ask for one.

  • Environments

    Every Project has a test half and a live half, and the prefix of the API key says which one you are in.

  • Priority and quiet hours

    Your agent says how urgent a Message is; the person decides when their phone may ring.

  • Surfaces

    The UI a Request carries: components, a data model, and the actions that send values back.

Guides

  • Wait for the answer

    Get the answer back by waiting for it with ask() or the long poll, or by a callback when your code cannot wait.

  • Webhooks and signatures

    The events Nibify sends, how to verify their Nibify-Signature, and what happens when your server does not answer.

  • Idempotency and retries

    Send a request again without asking twice, what the SDK retries on its own, and what to do with a 429.

Reference

  • Requests API

    Every /v1/requests endpoint: list the Requests of this Project, create a Request, read a Request, withdraw a Request, re-notify a pending Request, await the outcome of a Request.

  • Notifications API

    Every /v1/notifications endpoint: send a notification.

  • Threads API

    Every /v1/threads endpoint: list the Threads of this Project, read one Thread by its key.

  • Webhook events

    What Nibify posts to your webhook endpoints: message.delivered, message.read, message.answered, message.expired, message.dismissed, message.cancelled.

  • Errors and rate limits

    The error body, what the SDK does with it, every code an agent can receive, and the limits behind a 429.

  • SDK

    Every method and type @nibify/sdk exports: the client, ask(), notify(), the Request handle, the lists, webhooks.verify() and the component constructors.