/api/v1/paperwork
GET
/api/v1/paperwork
const url = 'https://example.com/api/v1/paperwork?limit=20&role=photo&subjectType=thing&expiry=any';const options = {method: 'GET'};
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://example.com/api/v1/paperwork?limit=20&role=photo&subjectType=thing&expiry=any'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
q
string
locationId
string format: uuid
role
string
subjectType
string
expiry
string
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
attachment
required
subject
required
object
type
required
string
id
required
string format: uuid
name
required
string
path
required
string
shortCode
string | null
expiring
object
id
required
string format: uuid
kind
required
string
expiresOn
required
string
state
required
string
snippet
string
next_cursor
required
string | null
Example
{ "items": [ { "subject": { "type": "thing" }, "expiring": { "kind": "registration", "state": "ok" } } ]}