Skip to content

Importing results through the API supports importing test results through our API, here you'll get a basic explanation of how to do that. For more detailed and technical documentation you can take a look at our Swagger API Documentation.

Formatter endpoints

  • And more...

The /import/formatter endpoint will try to import your file with that specific formatter.

File size limit: 50 MB


The /import endpoint will try out all available formatters. If your files are recognised by multiple formatters, it will return a failed status. This endpoint is not recommended because processing takes longer and unexpected failures may occur. It is mainly used for front end functionality.

File size limit: 30 MB

Formatter variables

Profile ID

All formatter API endpoints contain {profile_id}, this should be replaced with the profile you wish to push your results to. You can find the profile ID in the URL when you're on the profile. Profile ID in URL


You can verify yourself by putting your API key in the header as x-api-key. You can find and copy your API key on your account page.
Copy API key

Test result (body)

The test results can be given in multiple ways.

  • form-data by using the ?file[]= parameter to attach one of multiple files <-- Recommended
  • raw by putting the result file as a string directly into the body
  • binary by attaching the result file to the body

Import options

Go to the import options page for all details about every option.

The following parameters can be added to the URL.

Example API URL containing these variables

Curl examples

An API request that sends a JSON or XML test result file using curl looks like this:

Single file

curl -X POST \
     -H "Content-Type:multipart/form-data" \
     -H "x-api-key:<API_KEY>" \
     -F "file[]=@path/to/testresult" \
Note: The \'s are suppose to escape the new-line characters. This might not work in all systems, so in that case put everything on 1 line


curl -X POST \
     -H "Content-Type:multipart/form-data" \
     -H "x-api-key:<API_KEY>" \
     -F "file[]=@path/to/testresult_01" \
     -F "file[]=@path/to/testresult_02" \
     -F "file[]=@path/to/testresult_03" \

You can find and copy your specific API import curl command on your project overview page that contains the profile.

Calliope api import

As body

curl -X POST \
     -H "Content-Type:text/xml" \
     -H "x-api-key:<API_KEY>" \
     -d "@path/to/testresult" \

As data binary

curl -X POST \
     -H "Content-Type:text/xml" \
     -H "x-api-key:<API_KEY>" \
     --data-binary "@path/to/testresult" \

As urlencoded raw file

curl -X POST \
     -H "Content-Type:application/x-www-form-urlencoded" \
     -H "x-api-key:<API_KEY>" \
     -F "file[]=UrlEncodedResultFile" \

Try out API import

Try out our api end points, follow these few steps to import a report via swagger:


  • Click "Try it out" for the "POST /profile/{profileId}/import" api call

Try it out

  • Fill in the required variables:

    • The profileId of the profile you want to upload the file in

    • A body (if you don't have a file to upload use this file as a test file)

    • The Content type (Application/json for our test file)

  • Execute the POST call

  • Look at the Calliope profile and see if the results have been imported!