List shift confirmations
GET
/v1/shift-confirmations
const url = 'https://api.vocapable.com/v1/shift-confirmations?limit=50';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://api.vocapable.com/v1/shift-confirmations?limit=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
Limit
integer
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CursorPage[ShiftConfirmation]
object
data
required
Data
Array<object>
ShiftConfirmationobject
id
required
Id
string
call_id
required
Call Id
string
contact_id
required
Contact Id
string
shift_ref
required
Shift Ref
string
shift_starts_at
required
Shift Starts At
string format: date-time
response
required
Response
string
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
has_more
Has More
boolean
Example
{ "data": [ { "response": "confirmed" } ], "has_more": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}