Developers · OpenAPI 3.0.3
Shovel V3 API
Generated from the running router and the dto package — never hand-edited. A CI check regenerates it and fails if this document has drifted from the server that serves it, so the paths below are the ones gin will actually match.
- Operations
- 283
- 79 with modelled bodies
- Paths
- 211
- across 58 resources
- Schemas
- 59
- components.schemas
- Servers
- 2
- production · staging
- Commit
- unknown
- info.version
Before you integrate
Read these once. They come straight from the generated document.
Read first Every id is a string
Ids are uint64 TSIDs above JavaScript’s safe integer range (2^53). An integer is rounded by any JSON.parse consumer — with no error and no exception — and the client then reads, or reconciles against, a different row.
Keep them strings end to end. If your JSON parser widens large numbers automatically, force these fields back to strings, and do not normalise them into integers on the way into storage.
Keep
"id": "7329851402874912768"
Rounded by JSON.parse
"id": 7329851402874913000
Read first Absence here is not proof of absence
Some surfaces register only when configured. A document generated without that configuration has no such paths at all — which reads exactly like a product that does not have the feature, rather than a deployment that did not switch it on.
- /authapi/v1/apple
- native Sign in with Apple, relayed to Kanshin
- /authapi/v1/oidc/*
- the Kanshin token exchange and callback
- /authapi/v1/step-up
- re-authentication for a payout or an account deletion
- /oidcapi/v1/*
- the IdP surface this API proxies (authorize, token, jwks, recovery)
Generated with the local profile (server/config/local.yaml); see docs/OPENAPI.md
Reading this document
x-shovel-undocumented
The path and method are verified against the live router; the body is not described. A bespoke handler whose payload is not yet declared — the operation is real, its shape is simply not modelled here.
x-shovel-responses-incomplete
The response codes listed are a lower bound. A status on some path this operation can take is chosen at run time, so there may be refusals it can answer that are not listed. Every code that IS listed was derived; none was assumed.
x-shovel-success-unverified
The 200 on this operation is the conventional default, not a derived fact: no success code could be read out of the handler. Treat any 2xx as success rather than matching on 200.
x-shovel-absent-when-unconfigured
Listed on info. See the warning below.
readOnly: true
On a property: the server sets it, and ignores it in a request body. ⚠️ A property without it is not a promise that every operation writes it. A resource’s create and update share one schema, and OpenAPI 3.0 marks a property read-only on the schema rather than per operation, so a field only the create accepts cannot be marked.
Responses, and what the codes are worth
Every response code below was derived from the handler the route resolves to, the middleware it is registered with, and the code reachable from them — not from a convention about what an API of this shape ought to answer. This document once published 200 OK and nothing else on every one of its operations, which told an integrator that this API cannot fail.
A success code is not always 200. A create answers 201, several operations answer 204, and the response body is described under the code the server actually sends. Branch on the 2xx class, not on the literal 200.
An absent code is not a promise. Where the set could not be completed the operation says so, with x-shovel-responses-incomplete — so there, “not listed” means “not established” rather than “cannot happen”. Handle an unexpected 4xx or 5xx on every operation.
And two refusals are missing from these sets by construction, because the router cannot report them: authentication and consent are applied to whole route GROUPS rather than to one route, and router.Routes() keeps only the last handler of a chain. Every /api/v1 operation outside the public surface needs a bearer token and can answer 401 whether or not 401 is listed on it.
Versioning
info.version is the commit this was generated from, not a semantic version. Two copies of this document are comparable by that field; a version string nobody remembers to bump would make two different documents look like one.
Servers
Every /api/v1 operation outside the public surface needs a bearer token.
https://api.theshovelapp.com
https://api.stg.theshovelapp.com
Reference
283 operations, grouped by resource. Select a row for parameters, responses and an example request.
Partners
partner
- GET
/api/v1/Body not modelled200partner/ documents/ {document_id} - HEAD
/api/v1/Body not modelled200partner/ documents/ {document_id} /api/v1/Body not modelled204partner/ documents/ {document_id} -
Path parameters
None
Request body
None
About this operation
Body not modelledThe path and method are verified against the live router; the body is not described.
Responses
- 200OK
- 401Unauthorized
- 403Forbidden
- 500Internal Server Error
curl "https://api.theshovelapp.com/api/v1/partner/etickets" \ -H "Authorization: Bearer $SHOVEL_TOKEN" - HEAD
/api/v1/Body not modelled200partner/ etickets /api/v1/Body not modelled204partner/ etickets - GET
/api/v1/Body not modelled200partner/ loads - HEAD
/api/v1/Body not modelled200partner/ loads /api/v1/Body not modelled204partner/ loads - GET
/api/v1/Body not modelled200partner/ pits - HEAD
/api/v1/Body not modelled200partner/ pits /api/v1/Body not modelled204partner/ pits - GET
/api/v1/Body not modelled200partner/ trucks - HEAD
/api/v1/Body not modelled200partner/ trucks /api/v1/Body not modelled204partner/ trucks
Projects & hauling
load
- GET
/api/v1/Codes: lower bound200load/ - POST
/api/v1/Codes: lower bound201load/ - GET
/api/v1/Body not modelled200load/ approval-requests - GET
/api/v1/Body not modelled200load/ load-out-requests -
Path parameters
idpath · stringrequired
Request body
None
About this operation
Codes: lower boundThe response codes listed are a lower bound. Handle an unexpected 4xx or 5xx.
Responses
- 200OKLoad
- 401Unauthorized
- 404Not Found
- 4xx·5xxOthers possible — this set is a lower bound
curl "https://api.theshovelapp.com/api/v1/load/7329851402874912768" \ -H "Authorization: Bearer $SHOVEL_TOKEN" - DELETE
/api/v1/Codes: lower bound200load/ {id} - GET
/api/v1/Body not modelled200load/ {id}/ arrival - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ assign-driver - GET
/api/v1/Body not modelled200load/ {id}/ assignable-drivers - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ cancel-arrival-notice - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ cancel-operator-notice - POST
/api/v1/Body not modelled200load/ {id}/ complete - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ confirm-arrival - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ confirm-load-out - GET
/api/v1/Body not modelled200load/ {id}/ contact - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ decline-arrival - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ decline-load-out - POST
/api/v1/Body not modelled200load/ {id}/ drop - POST
/api/v1/Body not modelled200load/ {id}/ haul-back - GET
/api/v1/Body not modelled200load/ {id}/ load-out - POST
/api/v1/Body not modelledCodes: lower bound201load/ {id}/ notify-arrival - POST
/api/v1/Body not modelledCodes: lower bound201load/ {id}/ notify-operator - GET
/api/v1/Body not modelled200load/ {id}/ pays - POST
/api/v1/Body not modelled200load/ {id}/ pick-up - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ reject - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ verification - POST
/api/v1/Body not modelledCodes: lower bound200load/ {id}/ verify-haul-back
+ 56 more resources render the same way — every row comes from openapi.json
Schemas
59 schemas from components.schemas. read-only fields are set by the server and ignored in request bodies.
PartnerETicket
11 fieldscarrierPartnerETicketCarrierconstructedbooleanhaulPartnerETicketHaulissued_atstring · date-timeload_idstringmaterialPartnerETicketMaterialpayPartnerETicketPayproject_claim_idstringstatusstringticket_idstringtruckPartnerETicketTruck
Load
29 fieldsarrival_approverstringnullablecompleted_atstring · date-timedestination_geo_idstringdistance_metersinteger · int64driver_user_idstringdrop_verified_atstring · date-timenullableidstringjob_directionstringread-onlyloaded_atstring · date-timestatusstringvolume_cubic_yardsnumber · doublenullable
Account
32 fieldsAuthLoginRequest
2 fieldsClaims
11 fieldsDailyCharge
8 fieldsGeoPin
8 fieldsInvitation
11 fieldsMaterial
8 fieldsMembership
8 fieldsPageInfo
2 fieldsPartnerETicketCarrier
4 fields+ 47 more, alphabetical
Rendered from ./openapi.json · Shovel V3 API · commit unknown