API Documentation
|
where {objectId}
is the ID of a file object/Secure Object.
GET
- retrieves the cryptographic key required to decrypt the active version of a file object/Secure Object (specified by objectId
).Note: This method takes no parameters.
This API endpoint retrieves the cryptographic key required to decrypt the active version of a file object, using the file object's ID.
This key is generated by:
A file object's ID can be obtained by calling the <access-service>/api/v1/organisations/{orgId}/items API endpoint, which retrieves a list of information associated with file objects that can be filtered using various 'search' criteria.
This API endpoint supports the following Cocoon Data user roles (as described in the Organisation Administrator's Guide), conditions and permissions (where applicable):
{objectId}
in the request's URL.{objectId}
in the URL.The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
AES
.