Getting started

The first step is create an account here

Then you have two options, you can upload the files directly from the dashboard or you can use the token generator to get an API Key and upload your files programatically.

Keep in mind that once you've generated a token, you have to store it somewhere safe, because it wont be visible ever again. You'll have to regenerate it to get it again.

Basic POST

For the moment, the only way to upload a file (that is not from the dashboard) is via POST request, this can be achieved by most languages/frameworks

      
        curl --location 'https://img.capicua.org.es/api/file/upload/' --header 'Authorization: API_TOKEN' --form 'file=@"path/to/file"'
      
    

Basic GET

You can also get the file that has been posting via its id from this

      
        curl --location 'https://img.capicua.org.es/api/file/{FILE_UUID}'
      
    

Token Regeneration

For security reasons you can only view the token the first time. After that, you'll have to regenerate it every time you dont have it, making the previous token obsolete.