Snabber Escrita e desfazer API

Criar, editar e excluir dados exige que o dono da chave ligue as permissões "Permitir criar/editar" (`write`) e "Permitir excluir" (`delete`) na tela de Integrações — toda chave nasce só com leitura — e que o papel dele no workspace permita editar. Exclusões e lotes são em dois passos (preview → `X-Confirmation-Token`). Toda escrita devolve `undo_id`, que desfaz a ação por 30 dias em `POST /api/v1/actions/{undo_id}/undo`. Tetos por chave: 50 itens por chamada; por dia, 2000 criações, 5000 edições e 1000 exclusões. Transações criadas consomem a cota mensal do plano.

GitHub OpenAPI

Operations 1

POST /api/v1/actions/{undo_id}/undo Desfaz uma ação #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/snabber-com-br:snabber-com-br-escrita-e-desfazer-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

snabber-com-br-escrita-e-desfazer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snabber Escrita e desfazer API
  version: 1.0.0
  description: 'API pública para acessar seus próprios dados financeiros na Snabber. Disponível para planos pagos. Autentique-se com uma chave de API criada em /integrations, enviada no header `Authorization: Bearer snb_live_...`. Uma chave pode estar vinculada a um ou mais workspaces, com um deles marcado como padrão na criação — todo endpoint aceita `workspace_id` para escolher qual consultar; quando omitido, usa o padrão da chave. Use `GET /api/v1/workspaces` para descobrir quais workspaces a chave enxerga e qual é o padrão. Escrita (criar, editar, excluir) depende das permissões ligadas na chave — ver a tag "Escrita e desfazer".'
  contact:
    name: Snabber
    url: https://snabber.com.br
servers:
- url: https://snabber.com.br
  description: Produção
security:
- ApiKeyAuth: []
tags:
- name: Escrita e desfazer
  description: 'Criar, editar e excluir dados exige que o dono da chave ligue as permissões "Permitir criar/editar" (`write`) e "Permitir excluir" (`delete`) na tela de Integrações — toda chave nasce só com leitura — e que o papel dele no workspace permita editar. Exclusões e lotes são em dois passos (preview → `X-Confirmation-Token`). Toda escrita devolve `undo_id`, que desfaz a ação por 30 dias em `POST /api/v1/actions/{undo_id}/undo`. Tetos por chave: 50 itens por chamada; por dia, 2000 criações, 5000 edições e 1000 exclusões. Transações criadas consomem a cota mensal do plano.'
paths:
  /api/v1/actions/{undo_id}/undo:
    post:
      summary: Desfaz uma ação
      description: Desfaz uma ação feita por esta chave, por até 30 dias. Criações são apagadas; exclusões e edições voltam ao estado anterior. Itens que não puderem voltar aparecem em `skipped`. A cota mensal usada não volta.
      tags:
      - Escrita e desfazer
      parameters:
      - name: undo_id
        in: path
        required: true
        schema:
          type: integer
        description: '`undo_id` devolvido pela ação'
      responses:
        '200':
          description: Feito
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UndoResult'
        '401':
          description: Chave de API ausente, inválida, revogada ou expirada
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: '`INSUFFICIENT_SCOPE` (chave sem a permissão de escrita/exclusão), `WORKSPACE_READ_ONLY` (seu papel no workspace é somente leitura) ou `TRANSACTION_QUOTA_EXCEEDED` (cota mensal de transações)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Ação não encontrada para esta chave
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: '`ALREADY_UNDONE` ou `UNDO_EXPIRED`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Dados inválidos (`details.field` diz qual), conta inexistente no workspace (`details.available`), etc.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Limite de requisições ou teto diário de escrita da chave (`DAILY_WRITE_LIMIT`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Escrita pela API temporariamente desativada (`WRITES_DISABLED`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postApiV1ActionsByUndoIdUndo
      x-operation-id-source: derived
components:
  schemas:
    UndoResult:
      type: object
      properties:
        status:
          type: string
        undo_id:
          type: integer
        restored:
          type: integer
        deleted:
          type: integer
        skipped:
          type: array
          items:
            type: object
            properties:
              table:
                type: string
              id:
                type: integer
              reason:
                type: string
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: INVALID_API_KEY
            message:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: snb_live_*
      description: 'Chave de API gerada em /integrations. Envie como `Authorization: Bearer snb_live_...`'