Developers

Everything you do in Nimbli also works from a script or an AI assistant, with the same rules and the same limits. They act as you and can't do more than you can.

Connect an AI assistant

Claude, ChatGPT or any client that speaks MCP.

  1. Copy these instructions

    Show the instructions

    I want to connect you to Nimbli, a service for short links and QR codes, so you can manage my links for me.

    Nimbli has a remote MCP server at https://nimbli.app/mcp. Sign-in is through my Nimbli account in the browser (OAuth), and you will not need an API key.

    Please walk me through adding it in your app's current settings, step by step, since you know your own menus better than any web page does. If you cannot use remote MCP servers at all, tell me so plainly.

    When it is connected, list my teams. Ask me before you delete anything. Do not try to make tokens, change teams or delete my account: Nimbli does not allow assistants to.

  2. Paste them into your assistant

    Start a new chat in Claude, ChatGPT, Gemini or any assistant that can use connectors (MCP), and paste them in.

    Or add it yourself:https://nimbli.app/mcp
  3. Follow its steps, then ask

    Shorten https://shop.example.com/spring as spring-sale.

    Deleting a link always asks you first. Assistants never make tokens, change teams or delete your account.

Tools an assistant gets15
Assistant toolWhat it doesIn the API
myTeamsthe teams you're inlistTeams
teamLinkslist and search a team's linkslistLinks
linkByCodeone link by its code: where it goes, its name and notegetLink
linkClicksa link's clicks per day for the last 30 dayslinkClicks
createLinkmake a short link, with a name and a note if you likecreateLink
createLinksmake up to 50 short links at oncecreateLinks
changeDestinationchange where a link goes; printed QR codes followsetDestination
setNotesave or clear a link's note to selfsetNote
renameLinkset, change or remove a link's namerenameLink
deleteLinkdelete a link; its QR codes stop working toodeleteLink
askForReviewask Nimbli to look again at a flagged linknot in the API
reportLinkreport a harmful link to Nimblinot in the API
checkLinkOnDomainfind the preview of a short link on a team's domainnot in the API
teamDomainsa team's own domains and whether each workslistDomains
setLinkDomainchoose which address a link shows: a team's domain or ni.runsetLinkDomain

API tokens

A token lets a script act as you, in the team you pick.

Sign in to create a token.You'll name it, pick its team, what it may do and how long it lasts.

API reference

For developers writing a script: every operation of v1, with its params, an example answer and a curl line.

API basics

Base address
https://nimbli.app/api/v1openapi.json
Sign in
Authorization: Bearer <token>. Every call is a POST to its operation's address, with its params as JSON.
Safe retries
Send Idempotency-Key when creating; a retry with the same key returns the same link.
Limits
  • Per person, across the teams they're main owner of: 25 links on the free plan and 250 on Pro; a team uses its main owner's plan.
  • Per team: 3 people on the free plan and 10 on Pro.
  • Shared with the dashboard, the same on both plans: 20 new links an hour and 100 a day per team (and 40 an hour and 200 a day for one person, in all their teams), and 10 a day in a free account's first 7 days, in all its teams together; 600 calls a minute.
  • Every answer has RateLimit and RateLimit-Policy. A call past a limit answers 429 and says in its message how long to wait, and in Retry-After too past 600 calls a minute.
Paging
Lists return up to 100 items a call, with a next cursor to send back as after.

Operations

Open one for its address, curl line, params, example answer and errors. Its scope is the least a token needs to call it.

listTeams Read only The teams you're in, by name.

POSThttps://nimbli.app/api/v1/listTeams

Pass a team's id as team to make or list its links.

Request
curl -X POST \
  https://nimbli.app/api/v1/listTeams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"limit": 50}'
Example answer
Answer
{
  "data": [
    {
      "id": "team_01JB8XQ2F4ZK7M3N9P5R2T6V8W",
      "name": "name"
    }
  ],
  "next": "eyJrIjpbIjIwMzAtMDEtMTUiXX0"
}
setDestination Full access Changes where a link goes.

POSThttps://nimbli.app/api/v1/setDestination

Printed QR codes and shared links follow. A flagged or disabled link can't change.

Request
curl -X POST \
  https://nimbli.app/api/v1/setDestination \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "code": "codexxx",
    "destination": "destination"
  }'

Params

codetext · 7 charactersrequired
destinationtextrequired
Example answer
Answer
{
  "id": "link_01JB8XQ2F4ZK7M3N9P5R2T6V8W",
  "code": "code",
  "name": "name",
  "destination": "https://example.com/page",
  "note": "note",
  "state": "active",
  "createdAt": "2030-01-15T09:30:00.000Z",
  "changedAt": "2030-01-15T09:30:00.000Z",
  "address": "https://example.com/page",
  "domain": "domain"
}
Errors to branch on9
400blocked_destinationNimbli doesn't allow links to that site.
503check_unavailableWe couldn't check this address. Try again in a minute.
400invalid_destinationThat's this domain's own address. Use the page it should open.
429limit_reached
409link_disabledNimbli disabled this link, so it can't be changed.
409link_flaggedYou can't change where it goes while it's flagged. Ask for a review.
400private_destinationThat address is on a private network.
400shortener_destinationNimbli links can't point to other Nimbli links.
400unsafe_destinationThis address is on Google's list of unsafe sites.
setNote Full access Sets a link's note to self, or clears it with null.

POSThttps://nimbli.app/api/v1/setNote

Request
curl -X POST \
  https://nimbli.app/api/v1/setNote \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "code": "codexxx",
    "note": "note"
  }'

Params

codetext · 7 charactersrequired
notetext or null · 0 to 100 charactersrequired
Example answer
Answer
{
  "id": "link_01JB8XQ2F4ZK7M3N9P5R2T6V8W",
  "code": "code",
  "name": "name",
  "destination": "https://example.com/page",
  "note": "note",
  "state": "active",
  "createdAt": "2030-01-15T09:30:00.000Z",
  "changedAt": "2030-01-15T09:30:00.000Z",
  "address": "https://example.com/page",
  "domain": "domain"
}
Errors to branch on1
400invalid_noteA note can have letters, numbers, spaces and - _ , . ' ( ) & ! ? : only.
linkClicks Read only A link's clicks per day for the last 30 days, oldest first, with the totals for 7 and 30 days.

POSThttps://nimbli.app/api/v1/linkClicks

Request
curl -X POST \
  https://nimbli.app/api/v1/linkClicks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"code": "codexxx"}'

Params

codetext · 7 charactersrequired
Example answer
Answer
{
  "days": [
    {
      "date": "2030-01-15",
      "clicks": 3
    }
  ],
  "last7": 3,
  "last30": 3
}
listDomains Read only A team's own short domains, such as go.yourcafe.com, oldest first, with each one's state.

POSThttps://nimbli.app/api/v1/listDomains

Connecting and removing a domain is done on the site.

Request
curl -X POST \
  https://nimbli.app/api/v1/listDomains \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "team": "team_01JB8XQ2F4ZK7M3N9P5R2T6V8W"
  }'

Params

teaman id, team_...required
Example answer
Answer
{
  "domains": [
    {
      "id": "short_domain_01JB8XQ2F4ZK7M3N9P5R2T6V8W",
      "hostname": "hostname",
      "status": "waiting",
      "records": [
        {
          "type": "type",
          "name": "name",
          "value": "value",
          "found": true
        }
      ],
      "isDefault": true,
      "home": "https://example.com/page",
      "links": 3,
      "addedAt": "2030-01-15T09:30:00.000Z",
      "until": "2030-01-15T09:30:00.000Z"
    }
  ]
}
setLinkDomain Read and create Sets which address a link shows and puts in its new QR codes: one of its team's working domains, or ni.run (null).

POSThttps://nimbli.app/api/v1/setLinkDomain

The link opens at every one of them whatever it shows, so printed codes keep working.

Request
curl -X POST \
  https://nimbli.app/api/v1/setLinkDomain \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "code": "codexxx",
    "domain": "domain"
  }'

Params

codetext · 7 charactersrequired
domaintext or nulloptional
Example answer
Answer
{
  "id": "link_01JB8XQ2F4ZK7M3N9P5R2T6V8W",
  "code": "code",
  "name": "name",
  "destination": "https://example.com/page",
  "note": "note",
  "state": "active",
  "createdAt": "2030-01-15T09:30:00.000Z",
  "changedAt": "2030-01-15T09:30:00.000Z",
  "address": "https://example.com/page",
  "domain": "domain"
}
Errors to branch on1
400domain_not_readyOnly a working domain can be the address for new links.

Errors

Each is application/problem+json with the status, a code, a detail to show, and the field at fault.

Checks on a link15
400blocked_destinationNimbli doesn't allow links to that site.
503check_unavailableWe couldn't check this address. Try again in a minute.
400domain_not_readyOnly a working domain can be the address for new links.
400invalid_destinationThat's this domain's own address. Use the page it should open.
400invalid_nameUse 3 to 50 lowercase letters, numbers, - and _.
400invalid_noteA note can have letters, numbers, spaces and - _ , . ' ( ) & ! ? : only.
409link_disabledNimbli disabled this link, so it can't be changed.
409link_flaggedYou can't change where it goes while it's flagged. Ask for a review.
409name_takenThat name is taken. Try another.
400private_destinationThat address is on a private network.
400reserved_nameThat name is reserved. Try another.
400shortener_destinationNimbli links can't point to other Nimbli links.
409team_fullThe links limit of the plan of the team's main owner is reached, counted across the teams they're main owner of.
400unsafe_destinationThis address is on Google's list of unsafe sites.
403read_only_grantThe token, or the assistant's access it came with, was limited to reading by its person: this call would change something or reach another service.
Tokens and sign-in6
401invalid_tokenThe token is unknown, revoked or expired: make another at https://nimbli.app/developers.
403insufficient_scopeThe token is limited to other operations.
403outside_token_recordThe token works within one record, and this would change something outside it: outside it, the token reads only what someone signed out reads.
403first_stepIts person hasn't taken the app's first step yet, such as agreeing to its terms: detail says where they take it, in the app.
403step_upThe caller is a member of a record or a holder of an app role that asks more of a sign-in than this session or token showed: need says what, second (a second factor), google (a Google sign-in) or enrol (the person has no second factor yet). Sign in again with it, then make a new token: a token keeps what the sign-in that made it showed.
403token_record_leftThe token works within a record its person no longer belongs to, or that's gone. It works again if they rejoin.
Limits, retries and paging7
429limit_reached
429rate_limitedToo many calls: wait the seconds Retry-After says, then try again.
409idempotency_key_in_useA call with this Idempotency-Key is still running: try again in a second.
422idempotency_key_reusedThis Idempotency-Key was used with another body: a new request needs a new key.
409idempotency_unkeptThe first call with this Idempotency-Key succeeded, but its answer held a secret, which is never kept: read the result with a query, or make a new request with a new key if repeating it is safe.
400cursor_mismatchafter came from another operation or other params: start again without it.
410version_retiredThe version was retired: move to the newest one.
Any call11
400bad_request401unauthorized402payment_required403forbidden404not_found409conflict410gone422unprocessable_content429too_many_requests500internal_server_error503service_unavailable