Get a document by {document-id}

GET {{baseUrl}}/v2/namespaces/:namespace-id/collections/:collection-id/:document-id?fields=name, email&raw=true

Request Params

KeyDatatypeRequiredDescription
fieldsstringURL escaped, comma delimited list of keys to include
rawbooleanunwrap results

HEADERS

KeyDatatypeRequiredDescription
X-Cassandra-Tokenstring(Required) The token returned from the authorization endpoint for classic databases. Use this token in each request.
Acceptstring

RESPONSES

status: OK

{"data":{"documentId":"my-first-post-a6h54","title":"Hello World","author":{"name":"Cliff Wicklow"}}}