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"
}
Create a new file.
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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?