Workspace-scoped source-hash baseline lookup
POST
/v1/source-hashes
const url = 'http://localhost:8090/v1/source-hashes';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"uris":["example"],"workspaceIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/source-hashes \ --header 'Content-Type: application/json' \ --data '{ "uris": [ "example" ], "workspaceIds": [ "example" ] }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
uris
required
Workspace-relative paths
Array<string>
workspaceIds
Array<string>
Examplegenerated
{ "uris": [ "example" ], "workspaceIds": [ "example" ]}Responses
Section titled “ Responses ”One row per (workspace_id, uri)
Media typeapplication/json
Array<object>
object
workspaceId
string
uri
string
hash
string
Examplegenerated
[ { "workspaceId": "example", "uri": "example", "hash": "example" }]