Page through the whole sync journal
const url = 'https://work.optidata.cloud/api/drives/1/wal?page=1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://work.optidata.cloud/api/drives/1/wal?page=1' \ --header 'Authorization: Bearer <token>'Every entry of the drive’s write-ahead log, oldest first, a hundred at a
time. Normal clients follow the log with
GET /drives/{drive}/wal/since/{id} instead; this endpoint exists for a
full replay.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Numeric id of the drive. Read it from GET /drives/config.json.
Query Parameters
Section titled “Query Parameters”1-based page number.
Responses
Section titled “ Responses ”A page of journal entries.
object
Absent on endpoints that use the simple paginator.
Navigation links of a paginated envelope.
object
Absent on endpoints that use the simple paginator.
One entry of the write-ahead log. Every change to the drive appends an entry; clients replay the log from the last id they processed.
object
Session that produced the change. Pass it back as
optiwork_session_id to skip your own writes.
Fully qualified name of the domain event that produced the entry.
JSON-encoded payload of the event.
Example
{ "current_page": 1, "per_page": 30, "data": [ { "id": 950294, "event_class": "App\\Events\\Drive\\Share\\SharePermissionCreated" } ]}Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The resource does not exist, or does not belong to the given drive.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "No query results for model [App\\Models\\Node] 99999999"}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}