POST
/
v1
/
files
curl --location --request POST https://api.writer.com/v1/files \
 --header "Authorization: Bearer <token>"
{
  "id": "7c36a365-392f-43ba-840d-8f3103b42572",
  "name": "example.pdf",
  "created_at": "2024-07-10T14:30:00Z",
  "graph_id": []
}

Authorizations

Authorization
string
headerrequired

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

Headers

Content-Disposition
string
required

The disposition type of the file, typically used to indicate the form-data name.

Content-Type
string
required

The MIME type of the file being uploaded.

Content-Length
integer
required

The size of the file in bytes.

Body

The body is of type string.

Response

200 - application/json
id
string
required

A unique identifier of the graph.

created_at
string
required

The timestamp when the graph was created.

name
string
required

The name of the graph.

graph_ids
string[]
required

A list of graph IDs that the file is associated with.