POST
/
v1
/
files
curl --request POST \
  --url https://api.hyperline.co/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "invoice_2024.pdf",
  "customer_id": "cus_QalW2vTAdkR6IY"
}'
{
  "id": "fil_2QdJDDUej969ev",
  "name": "invoice_2024.pdf",
  "type": "pdf",
  "mimetype": "application/pdf",
  "customer_id": "cus_QalW2vTAdkR6IY",
  "created_at": "2024-11-12T07:38:39.222Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Response

201 - application/json

The response is of type object.

POST
/
v1
/
files
curl --request POST \
  --url https://api.hyperline.co/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "invoice_2024.pdf",
  "customer_id": "cus_QalW2vTAdkR6IY"
}'
{
  "id": "fil_2QdJDDUej969ev",
  "name": "invoice_2024.pdf",
  "type": "pdf",
  "mimetype": "application/pdf",
  "customer_id": "cus_QalW2vTAdkR6IY",
  "created_at": "2024-11-12T07:38:39.222Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Response

201 - application/json

The response is of type object.