Index

Get CredentialRecords index

post

This endpoint allows the user to query their CredentialRecords index

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
limitnumberOptionalDefault: 25
cursorstringOptional
queryany ofOptional
or
encryptbooleanOptionalDefault: true
sortstring · enumOptionalDefault: newestFirstPossible values:
includeAssociatedDidsbooleanOptionalDefault: true
Responses
200

Successful response

application/json
Responseany of
or
post
/index/get

Count records in index for query

post

This endpoint allows the user to see how many records they have in their index for a query

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
queryany ofOptional
or
encryptbooleanOptionalDefault: true
includeAssociatedDidsbooleanOptionalDefault: true
Responses
200

Successful response

application/json
Responseany of
integer · max: 9007199254740991Optional
or
post
/index/count

Add to index

post

This endpoint adds a CredentialRecord to the user's index

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
recordany ofRequired
or
Responses
200

Successful response

application/json
Responseboolean
post
/index/add

Add many to index

post

This endpoint adds multiple CredentialRecords to the user's index

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
recordsany ofRequired
or
Responses
200

Successful response

application/json
Responseboolean
post
/index/addMany

Deletes a CredentialRecord

delete

This endpoint deletes a CredentialRecord

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Responses
200

Successful response

application/json
Responseboolean
delete
/index/{id}

Update a CredentialRecord

patch

This endpoint updates a CredentialRecord

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
updatesany ofRequired
or
Responses
200

Successful response

application/json
Responseboolean
patch
/index/{id}

Deletes all CredentialRecords

delete

This endpoint deletes all CredentialRecords

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Successful response

application/json
Responseboolean
delete
/index

Last updated

Was this helpful?