Read a branch event
GET
Read one immutable branch event. You must have permission to read the branch history of the project.
bearerAuthheader
AuthorizationBearer <token>project_id*stringOwning project identifier. Nonempty, at most 128 UTF-8 bytes, with no control characters. Project creation belongs to the project service.
event_id*stringImmutable UUIDv7 branch event identity.
Format
uuidSuccess
application/json- response
Immutable branch event. Optional fields describe the operation; previousBranchEventId links events for the same stable branch identity.
actor*catalog.ActorIdAuthenticated actor recorded by the service; callers cannot choose an actor. At most 128 UTF-8 bytes.
branchEventId*catalog.BranchEventIdImmutable UUIDv7 branch event identity.
Format
uuidbranchId*catalog.BranchIdStable UUIDv7 branch identity. Rename preserves identity; deletion tombstones it.
Format
uuidmessage?string|nullnewCommitId?|nullnewName?|nulloccurredAtMicros*|oldCommitId?|nulloldName?|nulloperation*catalog.BranchEventOperationBranch identity lifecycle and head movement. Client responses retain unknown future operation values.
Value in
"create""advance""merge""rename""delete"previousBranchEventId?|nulltransactionId?|nullcurl -X GET 'https://api.spiraldb.dev/api/catalog/projects/string/branch-events/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "actor": "string", "branchEventId": "652c6cb3-38b8-46ef-8926-780723491e40", "branchId": "712f308d-801e-48bc-b072-9c404734ceb7", "message": "string", "newCommitId": "13517670-88c3-4c6a-a869-3a07050599df", "newName": "string", "occurredAtMicros": "string", "oldCommitId": "bf8dd278-3b22-4584-82a5-b50b07acd157", "oldName": "string", "operation": "create", "previousBranchEventId": "bc9045a0-48a1-4c4c-87b2-295e480fbf76", "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc"}