Kvickd Instruktioner och policyer API

The Instruktioner och policyer API from Kvickd — 4 operation(s) for instruktioner och policyer.

GitHub OpenAPI

Operations 6

POST /api/v1/instructions Spara instruktion #
GET /api/v1/instructions Lista instruktioner #
DELETE /api/v1/instructions/{instruction_id} Ta bort instruktion #
PATCH /api/v1/instructions/{instruction_id} Ändra instruktion #
GET /api/v1/policies Lista policyer #
GET /api/v1/policies/{policy_id} Läs policy #

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/kvickd-com:kvickd-com-instruktioner-och-policyer-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

kvickd-com-instruktioner-och-policyer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kvickd Instruktioner och policyer API
  version: '1'
  description: Allt som går att se och göra i Kvickd, som REST-anrop. Varje adress är ett MCP-verktyg med samma namn (operationId), samma behörigheter och samma credits. Se kvickd.com/api.
  summary: 'REST API for Kvickd, bookkeeping for Swedish small businesses (AB, enskild firma, handelsbolag): ledger, invoices, VAT, payroll, year-end and annual reports. Every endpoint is also an MCP tool with the same name.'
  termsOfService: https://www.kvickd.com/villkor#api
  contact:
    name: Kvickd
    url: https://www.kvickd.com/api
    email: hello@kvickd.com
  x-logo:
    url: https://www.kvickd.com/kvickd-logo.png
    altText: Kvickd
servers:
- url: https://api.kvickd.com
security:
- ApiKey: []
- Bearer: []
tags:
- name: Instruktioner och policyer
paths:
  /api/v1/instructions:
    post:
      operationId: add_instruction
      tags:
      - Instruktioner och policyer
      summary: Spara instruktion
      description: 'Sparar en ny instruktion: en regel som användaren vill att AI:n följer när den bokför, t.ex. ''Representation bokas på 6072''. Använd när användaren ber dig komma ihåg något för framtiden; ändra en befintlig med update_instruction i stället för att spara en dubblett. Med orgnr gäller den bara det bolaget, annars alla bolag i kontot (det kräver att användaren är kontots administratör). Syns för användaren i Kvickd under Inställningar, Instruktioner. Returnerar id, text och vilka bolag den gäller. Kräver behörigheten manage_documents i bolaget.'
      x-kvickd-read-only: false
      x-kvickd-mcp-tool: add_instruction
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                text:
                  description: Instruktionen i klartext, högst 2000 tecken, t.ex. 'Konto 6540 används för IT-tjänster.'
                  title: Text
                  type: string
                orgnr:
                  anyOf:
                  - type: string
                  - type: 'null'
                  default: null
                  description: 'Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, när instruktionen bara gäller det bolaget. Utelämna för en instruktion som gäller alla bolag i kontot.'
                  title: Orgnr
              required:
              - text
              title: add_instructionArguments
              type: object
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          maxLength: 255
        description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
    get:
      operationId: list_instructions
      tags:
      - Instruktioner och policyer
      summary: Lista instruktioner
      description: 'Listar bolagets instruktioner: regler som användaren sparat för hur bokföringen ska göras, t.ex. vilket konto en viss kostnad bokförs på. Läs och följ dem innan du bokför eller föreslår konteringar. Med orgnr returneras det som gäller bolaget (dess egna och kontots gemensamma), utan orgnr alla instruktioner du har åtkomst till. Returnerar per instruktion id, text, orgnr (null = alla bolag) och vilka bolag den gäller. Drar ingen credit. Läser bara, ändrar inget.'
      x-kvickd-read-only: true
      x-kvickd-mcp-tool: list_instructions
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: orgnr
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          description: 'Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, för det som gäller bolaget. Utelämna för alla bolag du har åtkomst till.'
          title: Orgnr
        description: 'Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, för det som gäller bolaget. Utelämna för alla bolag du har åtkomst till.'
  /api/v1/instructions/{instruction_id}:
    delete:
      operationId: delete_instruction
      tags:
      - Instruktioner och policyer
      summary: Ta bort instruktion
      description: 'Tar bort en sparad instruktion permanent. Använd när användaren ber dig glömma en regel eller när den inte gäller längre. Argument: instruction_id (från list_instructions). Returnerar id och texten som togs bort. Kräver behörigheten manage_documents i bolaget; instruktioner för alla bolag tas bara bort av kontots administratör.'
      x-kvickd-read-only: false
      x-kvickd-mcp-tool: delete_instruction
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: instruction_id
        in: path
        required: true
        schema:
          description: Instruktionens id från list_instructions.
          title: Instruction Id
          type: integer
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          maxLength: 255
        description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
    patch:
      operationId: update_instruction
      tags:
      - Instruktioner och policyer
      summary: Ändra instruktion
      description: 'Ändrar en sparad instruktion: ny text och/eller vilka bolag den gäller. Använd när användaren ber dig ändra eller rätta en regel. Den gamla texten skrivs över. Argument: instruction_id (från list_instructions); valfritt text, orgnr för att låta den gälla ett bolag och all_companies=true för att låta den gälla alla bolag. Returnerar instruktionen som den ser ut efter ändringen. Kräver behörigheten manage_documents i bolaget; instruktioner för alla bolag ändras bara av kontots administratör.'
      x-kvickd-read-only: false
      x-kvickd-mcp-tool: update_instruction
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              properties:
                text:
                  anyOf:
                  - type: string
                  - type: 'null'
                  default: null
                  description: 'Valfritt: ny text, högst 2000 tecken. Utelämna för att behålla texten.'
                  title: Text
                orgnr:
                  anyOf:
                  - type: string
                  - type: 'null'
                  default: null
                  description: 'Valfritt: låt instruktionen gälla bara det här bolaget, t.ex. 559900-1004.'
                  title: Orgnr
                all_companies:
                  default: false
                  description: true för att låta instruktionen gälla alla bolag i kontot.
                  title: All Companies
                  type: boolean
              title: update_instructionArguments
              type: object
      parameters:
      - name: instruction_id
        in: path
        required: true
        schema:
          description: Instruktionens id från list_instructions.
          title: Instruction Id
          type: integer
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          type: string
          maxLength: 255
        description: Valfri. Samma nyckel inom ett dygn ger samma svar i stället för att anropet körs igen.
  /api/v1/policies:
    get:
      operationId: list_policies
      tags:
      - Instruktioner och policyer
      summary: Lista policyer
      description: Lista policydokument och uppladdade underlag (manualer, avtal, policyer, kontoutdrag, kvitton). Läs textinnehåll med read_policy. Poster med status 'image' (t.ex. kvitton som skärmdump/foto) läses i stället som bild med read_underlag_image. Valfritt orgnr filtrerar till ett bolag. Scope view.
      x-kvickd-read-only: true
      x-kvickd-mcp-tool: list_policies
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: orgnr
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          description: 'Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, för att bara visa det bolagets policyer. Utelämna för alla bolag du har åtkomst till.'
          title: Orgnr
        description: 'Valfritt: bolagets organisationsnummer, t.ex. 559900-1004, för att bara visa det bolagets policyer. Utelämna för alla bolag du har åtkomst till.'
  /api/v1/policies/{policy_id}:
    get:
      operationId: read_policy
      tags:
      - Instruktioner och policyer
      summary: Läs policy
      description: 'Hämta ett policydokuments/underlags innehåll som markdown (token-snålt). Argument: policy_id (från list_policies). Har posten status ''image'' finns ingen text att läsa, använd read_underlag_image för att se bilden. Scope view.'
      x-kvickd-read-only: true
      x-kvickd-mcp-tool: read_policy
      responses:
        '200':
          description: Verktygets svar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
        '400':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '415':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Fel
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          title: Policy Id
          type: integer
components:
  schemas:
    Result:
      type: object
      properties:
        data: {}
    Error:
      type: object
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
    Bearer:
      type: http
      scheme: bearer
      description: 'Samma API-nyckel som Authorization: Bearer kvickd_key_...'
externalDocs:
  description: API-dokumentation
  url: https://www.kvickd.com/api