Tasks

Connect an endpoint

Let Rendel call one of your API's endpoints, as the signed-in user, with one sync, or with no agent at all.

Your app calls an API Rendel should use: look up an order, list bookings, change an address.

Then send this

The app now calls {METHOD /path} to {what it does}. Let Rendel use it as the signed-in user.

Open Sync with code, paste its prompt into your coding agent, then send this after it. Works in Claude Code, Cursor, Codex, Windsurf, GitHub Copilot and Gemini CLI.

What the agent will do

  • Make it an action Rendel's server calls, when the endpoint is plain HTTPS. That is edited in the console later, with no release.
  • Register it in your app's code instead, with registerAction, only when a server cannot make the call: a Firebase or GraphQL client, signed requests, an internal network, on-device state.
  • Describe each parameter, and mark anything that changes data as write or destructive, so the user confirms it first.
  • Never send a key, and never ask you for one. An endpoint that wants a key your app sends itself is registered in your app's code, over the call your app already makes.

How to check it worked

The Actions page lists it under On server (or In app code after a build). On the Test page, pick a user under Talk as and ask for what the endpoint does.

Reference: what it writes

Only for an action that has to run in your app:

Flutter
Rendel.registerAction(RendelAction(
  name: 'cancel_order',
  description: 'Cancel an order that has not shipped yet',
  params: RendelSchema.object({'order_id': RendelSchema.string()}),
  risk: RendelRisk.destructive,
  confirmTemplate: 'Cancel order {order_id}? This cannot be undone.',
  handler: (params) async => RendelResult.ok({'refund_eta_days': 5}),
));

How the sentence becomes one paste: Sync after a change.

Without an agent

On Actions › On server, Connect an API takes an address that works in a browser, or your API's documentation (OpenAPI or Swagger, a YAML spec, a PDF reference, a Postman collection), lists the endpoints, and you tick the ones Rendel may use. A value your spec lists options for (enum, or oneOf with a const each) keeps them, with the spec's names for them (x-enumNames, x-enum-descriptions, a oneOf entry's title): the model may send only those, and on an action that changes something the user picks one on the confirmation card.

On an action that changes something, What each value can be has Changeable on the card beside each value. Tick it for a value the user may want to change on the confirmation card before confirming: a quantity, a note or reason, one of a few choices. The server checks a changed value with the same rules as the model's. Leave it off for an id and for any amount your app computes. See Values the user can change on the card.

Who the call is made as

Signed in asMay
A shared key, or an account made for RendelRead only
The signed-in user (your app hands Rendel their token)Read, and change something after the user confirms

A change takes a confirmation card, recorded by the server before it calls your endpoint, once, unless it can be taken back: under Before it runs on the action's page, choose Can be undone and the action that undoes it, and it runs at once with an Undo in the answer for ten minutes. A destructive action always asks. For the token to reach Rendel, your app has to pass it: see Sign-in and identity. The full rules: Actions and risk levels.