Criar Anexo

Esta rota permite criar um anexo na plataforma Finbits.

Exemplo de código em JavaScript:

const formData = new FormData();

formData.append("file", fileInput.files[0], "example.txt");

fetch("https://api.finbits.com.br/public/attachments", {
  method: "POST",
  headers: {
    authorization: `Bearer ${FINBITS_PUBLIC_API_TOKEN}`
  },
  body: formData
}).then(response => response.json())
  .then(data => console.log(data));
Body Params
file

Arquivo de um dos seguintes tipos: Imagem, PDF, Planilha do Excel, XML, ou texto

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json