Spanish Total.js
English
Documentation For AI agents
Contents

Keep collections in files

A collection is a JSON file that you keep where you want: next to the code of your app, for example, so that it goes to Git with it.

.md GitHub
On this page

Make one

Press New collection at the start, or choose New collection… among the commands (⇧⌘P on the Mac, Ctrl+Shift+P on Windows and Linux). Choose the folder and the name of the file, which ends in .totalapi.json. Change the name of the collection at the top left when you want: the file keeps its own.

Saved as you write

There is no button to save. Each change is written to the file a moment after you make it. The bottom of the window has the name of the file, and says Not saved with the reason if it could not be written.

Open and close

  • Open a file with ⌘O on the Mac, or Ctrl+O on Windows and Linux.
  • The start has the last twelve that you opened, under Recent.
  • Close the collection with the red cross at the top right.
  • TotalAPI opens at its start the collection that you had open.

One collection is open at a time.

Share it and keep it in Git

The file has the folders, the requests, their auth, the checks, the notes and the environments. It does not have the values of the secret variables, the cookies or the answers.

Anything that is not in a secret variable is in the file as you wrote it: also a token or a password written in Auth, in Headers or in the form of an action.

TotalAPI does not look at the file again while it is open. If it changes outside, for example when you pull from Git, the next thing you write puts back what the app had. Close the collection before you change the file, and open it afterwards.

Made in Europe