GET
/
v1
/
graphs
curl --location --request GET https://api.writer.com/v1/graphs \
 --header "Authorization: Bearer <token>"
{
  "data": [
    {
      "id": "50daa3d0-e7d9-44a4-be42-b53e2379ebf7",
      "created_at": "2024-07-10T15:03:48.785843Z",
      "name": "Example graph",
      "description": "Example description",
      "file_status": {
        "in_progress": 0,
        "completed": 0,
        "failed": 0,
        "total": 11
      }
    },
    {
      "id": "e7392337-1c4e-4bc9-aaf5-b719bf1e938a",
      "created_at": "2024-07-10T15:03:39.881370Z",
      "name": "Another example graph",
      "description": "Another example description",
      "file_status": {
        "in_progress": 0,
        "completed": 0,
        "failed": 0,
        "total": 5
      }
    }
  ]
}

Authorizations

Authorization
string
headerrequired

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

Query Parameters

order
enum<string>
default: desc

Specifies the order of the results. Valid values are asc for ascending and desc for descending.

Available options:
asc,
desc
before
string

The ID of the first object in the previous page. This parameter instructs the API to return the previous page of results.

after
string

The ID of the last object in the previous page. This parameter instructs the API to return the next page of results.

limit
integer
default: 50

Specifies the maximum number of objects returned in a page. The default value is 50. The minimum value is 1, and the maximum value is 100.

Response

200 - application/json
data
object[]
required
first_id
string

The ID of the first file in the current response.

last_id
string

The ID of the last file in the current response.

has_more
boolean
required

Indicates if there are more files available beyond the current page.