Skip to main content

Importing from other tools

Kreya can import existing API collections from other tools so you do not have to recreate your operations by hand. This is different from the importers found under Project → Importers: those import an API definition (OpenAPI, Protobuf, GraphQL schema) and keep your operations in sync, whereas the importers described here perform a one-time import of an existing project, collection or recorded traffic.

Importing from a file

Open the application menu and choose Import…. In the dialog, select the importer Type, add one or more files and confirm. Kreya creates the operations (and, where available, authentication configurations and environments) in the current project.

The following file importers are available:

TypeSource tool / formatFile extensionsImported operations
PostmanPostman collection export.jsonREST, GraphQL
InsomniaInsomnia export.json (v4)
.yaml/.yml (v5)
REST, GraphQL, gRPC, WebSocket
HTTP Archive (HAR)Recorded HTTP traffic (.har).harREST, GraphQL, gRPC-Web, WebSocket
HAR

A HAR file is a recording of network traffic that you can export from your browser's developer tools. Kreya can even decode gRPC-Web payloads from a HAR file — see the blog post Import HAR Files in Kreya for a walkthrough.

Importing from copied text

Kreya also watches your clipboard for importable commands. When you copy a curl or grpcurl command (for example the "Copy as cURL" output from your browser or another API tool), Kreya shows a notification:

Detected importable text in clipboard…

Click Import to turn the command into an operation. The following text formats are detected:

Copied commandCreated operation
curl …REST
curl … (gRPC-Web)gRPC-Web
curl … (GraphQL)GraphQL
grpcurl …gRPC

If a command could match more than one format, Kreya asks which type to use before importing.

Keeping operations in sync

The file and text importers above create operations once. If you instead want Kreya to keep operations in sync with a changing API definition, use the importers under Project → Importers (gRPC server reflection or protobuf files, REST OpenAPI, GraphQL schema).