Download OpenAPI specification:Download
Truvity Platform API.
Create a new API key resource.
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "secret": "pa$$word",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for API Keys with extended filters capabilities.
Array of objects (ApiKeyFilter) <= 4 items The filter to apply to the search. | |
Array of objects (ApiKeySort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "expiration": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "subject_id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_EXPIRATION",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Delete API Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.ApiKeys.ApiKeyDelete( context.TODO(), "id", &sdkgo.ApiKeyDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of API Key.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyLatest( context.TODO(), "id", &sdkgo.ApiKeyLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of API Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of API Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore API Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyRestore( context.TODO(), "id", &sdkgo.ApiKeyRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the API Key's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyHistory( context.TODO(), "id", &sdkgo.ApiKeyHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the API Key's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.ApiKeys.ApiKeyRevision( context.TODO(), "id", 1, &sdkgo.ApiKeyRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Import a Verifiable Credential's resource with a blob_id.
To get blob_id call Upload first.
blob_id required | string <uuid> The ID that returned on Upload operation in blob_id field. |
draft_id | string <uuid> The ID of a Draft that was exported to get the importing Credential. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for Credentials with extended filters capabilities.
Array of objects (CredentialFilter) <= 4 items The filter to apply to the search. | |
Array of objects (CredentialSort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}, - "linked_credentials": {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}, - "linked_files": {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "content_type": {
- "operator": "EQUAL",
- "value": "string"
}, - "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "filename": {
- "operator": "EQUAL",
- "value": "string"
}, - "filesize": {
- "operator": "EQUAL",
- "value": 1
},
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
}
], - "sort": [
- {
- "field": "DATA_ID",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Initiates a Credential blob upload, returning a pre-signed S3 URL. Response contains:
blob_id (required for Credential creation)
upload_uri (pre-signed URL for upload)
timeout (expiration in seconds).
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialUpload( context.TODO(), &sdkgo.CredentialUploadRequest{}, )
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Delete Credential's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Credentials.CredentialDelete( context.TODO(), "id", &sdkgo.CredentialDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of Credential.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialLatest( context.TODO(), "id", &sdkgo.CredentialLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of Credential's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of Credential's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore Credential's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialRestore( context.TODO(), "id", &sdkgo.CredentialRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the Credential's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialHistory( context.TODO(), "id", &sdkgo.CredentialHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the Credential's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialRevision( context.TODO(), "id", 1, &sdkgo.CredentialRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Download of Credential's blob.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
"string"
Verify a Verifiable Credential.
id required | string <uuid> The ID of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Credentials.CredentialVerify( context.TODO(), "id", )
{- "verified": true
}
Get DID-Document for did:web Method Specification.
tenant_id required | string <uuid> The ID of the tenant. |
If-None-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-None-Match header field is used to declare a list of identifiers that are required to fail matching all the current resource version identifiers as a pre-condition for executing the request on the server side. This is especially used in conjunction with an * (asterix) that is matching all possible resource identifiers to ensure the initial creation of a resource. Other use cases are possible but rare. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.2 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Desk.DidDocumentGet( context.TODO(), "tenant_id", &sdkgo.DidDocumentGetRequest{}, )
{- "@context": [
- "string"
], - "assertionMethod": [
- "strings"
], - "authentication": [
- "strings"
], - "id": "strings",
- "verificationMethod": [
- {
- "@context": [
- "string"
], - "controller": "strings",
- "id": "strings",
- "publicKeyBase58": "string",
- "type": "Multikey"
}
]
}
Receive DIDComm Message.
tenant_id required | string <uuid> The ID of the tenant. |
"string"
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Search for DIDComm Messages with extended filters capabilities.
Array of objects (DidcommMessageFilter) <= 4 items The filter to apply to the search. | |
Array of objects (DidcommMessageSort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "credentials": {
- "operator": "IN",
- "values": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "from": {
- "operator": "EQUAL",
- "value": "strings"
}, - "presentations": {
- "operator": "IN",
- "values": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "to": {
- "operator": "EQUAL",
- "value": "strings"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_FROM",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": null,
- "type": null
}, - "type": [
- null
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "linked_file_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Send a DIDComm Message to a recipient.
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
required | object (DIDCommMessageSend) The request to send a DIDComm message. |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "credentials": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "disable_transitive_closure": true,
- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "presentations": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "to": "strings"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Delete DIDComm Message's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.DidcommMessages.DidcommMessageDelete( context.TODO(), "id", &sdkgo.DidcommMessageDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of DIDComm Message.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageLatest( context.TODO(), "id", &sdkgo.DidcommMessageLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of DIDComm Message's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of DIDComm Message's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore DIDComm Message's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageRestore( context.TODO(), "id", &sdkgo.DidcommMessageRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the DIDComm Message's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageHistory( context.TODO(), "id", &sdkgo.DidcommMessageHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": null,
- "type": null
}, - "type": [
- null
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "linked_file_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "blob_id": null,
- "digest_multibase": null,
- "resource_id": null
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the DIDComm Message's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.DidcommMessages.DidcommMessageRevision( context.TODO(), "id", 1, &sdkgo.DidcommMessageRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "credentials": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "files": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "from": "strings",
- "presentations": {
- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}, - "to": "strings"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Return the tenant's DID(did:web) document. Comparing to DIDDocumentGet endpoint, this one returns the tenant's DID(did:web) document for the authenticated tenant only.
If-None-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-None-Match header field is used to declare a list of identifiers that are required to fail matching all the current resource version identifiers as a pre-condition for executing the request on the server side. This is especially used in conjunction with an * (asterix) that is matching all possible resource identifiers to ensure the initial creation of a resource. Other use cases are possible but rare. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.2 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Dids.DidDocumentSelfGet( context.TODO(), &sdkgo.DidDocumentSelfGetRequest{}, )
{- "@context": [
- "string"
], - "assertionMethod": [
- "strings"
], - "authentication": [
- "strings"
], - "id": "strings",
- "verificationMethod": [
- {
- "@context": [
- "string"
], - "controller": "strings",
- "id": "strings",
- "publicKeyBase58": "string",
- "type": "Multikey"
}
]
}
Creates Draft's resource.
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
required | object (DraftCreate) The schema for creating a draft. |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for Drafts with extended filters capabilities.
Array of objects (DraftFilter) <= 4 items The filter to apply to the search. | |
Array of objects (DraftSort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "meta": {
- "subject": {
- "operator": "EQUAL",
- "value": "string"
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}, - "linked_credentials": {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}, - "linked_drafts": {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "meta": {
- "subject": {
- "operator": "EQUAL",
- "value": "string"
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
}
], - "sort": [
- {
- "field": "DATA_TYPE",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Delete Draft's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Drafts.DraftDelete( context.TODO(), "id", &sdkgo.DraftDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of Draft.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Drafts.DraftLatest( context.TODO(), "id", &sdkgo.DraftLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update Draft's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object (DraftUpdate) The data of the resource. | ||||
|
{- "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "values": {
- "property1": null,
- "property2": null
}
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of Draft's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
This operation issues a Verifiable Credential from a Draft resource. Operational Lifecycle:
Cascade Issuance: If the Draft references other drafts the system automatically builds a dependency graph and issues all required drafts in the correct order. The correct order is a topological order of the dependency graph, where each draft is issued only after all its prerequisite drafts have been issued.
Strict Mode:
strict_mode
option allows clients to control how prerequisite drafts are handled during cascade issuance.strict_mode
to enforce that only the explicitly specified drafts in prerequisite_drafts
(with matching ETags) are accepted as prerequisites.Performance Considerations:
Concurrency and Consistency:
If-Match
header is provided, strict version control is enforced. The operation will fail if the ETag does not match the current Draft version.Recovery:
id required | string <uuid> The ID of the resource. |
If-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
did_method | string Default: "web" Enum: "key" "web" The DID method to use for the issuer DID. |
issuer | string <uri> The URI of the credential issuer. |
key_id required | string <uuid> The ID of the key to sign the credential. |
object Map of draft URNs to their associated eTags for validation | |
strict_mode | boolean When enabled, the user must provide the full list of prerequisite draft IDs, and the system enforces this exact prerequisite graph. When disabled, the system automatically determines the dependency graph. |
valid_from | string <date-time> The date and time the issued credential is valid from. |
valid_until | string <date-time> The date and time the issued credential is valid until. |
{- "did_method": "key",
- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "prerequisite_drafts": {
- "property1": "string",
- "property2": "string"
}, - "strict_mode": true,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of Draft's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore Draft's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Drafts.DraftRestore( context.TODO(), "id", &sdkgo.DraftRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the Draft's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Drafts.DraftHistory( context.TODO(), "id", &sdkgo.DraftHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the Draft's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Drafts.DraftRevision( context.TODO(), "id", 1, &sdkgo.DraftRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_draft_refs": [
- {
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "is_array": true,
- "name": "string",
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vc_type": [
- "string"
], - "vocab_name": "string",
- "vocab_namespace": "string"
}, - "type": [
- "string"
], - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Generate an unsigned Verifiable Credential in JSON-LD format from a Draft.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
issuer required | string <uri> The URI of the credential issuer. |
valid_from | string <date-time> The date and time the issued credential is valid from. |
valid_until | string <date-time> The date and time the issued credential is valid until. |
{- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
"string"
Deprecated: please use new endpoint DraftIssue.This operation issues a Verifiable Credential from a Draft resource. Operational Lifecycle:
Cascade Issuance: If the Draft references other drafts the system automatically builds a dependency graph and issues all required drafts in the correct order. The correct order is a topological order of the dependency graph, where each draft is issued only after all its prerequisite drafts have been issued.
Strict Mode:
strict_mode
option allows clients to control how prerequisite drafts are handled during cascade issuance.strict_mode
to enforce that only the explicitly specified drafts in prerequisite_drafts
(with matching ETags) are accepted as prerequisites.Performance Considerations:
Concurrency and Consistency:
If-Match
header is provided, strict version control is enforced. The operation will fail if the ETag does not match the current Draft version.Recovery:
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] Deprecated The revision of the resource. |
If-Match | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
did_method | string Default: "web" Enum: "key" "web" The DID method to use for the issuer DID. |
issuer | string <uri> The URI of the credential issuer. |
key_id required | string <uuid> The ID of the key to sign the credential. |
object Map of draft URNs to their associated eTags for validation | |
strict_mode | boolean When enabled, the user must provide the full list of prerequisite draft IDs, and the system enforces this exact prerequisite graph. When disabled, the system automatically determines the dependency graph. |
valid_from | string <date-time> The date and time the issued credential is valid from. |
valid_until | string <date-time> The date and time the issued credential is valid until. |
{- "did_method": "key",
- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "prerequisite_drafts": {
- "property1": "string",
- "property2": "string"
}, - "strict_mode": true,
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "expirationDate": "2019-08-24T14:15:22Z",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "proof": {
- "id": "string",
- "type": "string"
}, - "type": [
- "string"
]
}, - "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "linked_file_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Creates File's resource with blob_id.
To get blob_id call Upload first.
blob_id required | string <uuid> The ID that returned on Upload operation in blob_id field. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
object (FileData) The data to create a file. | |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for Files with extended filters capabilities.
Array of objects (FileFilter) <= 4 items The filter to apply to the search. | |
Array of objects (FileSort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "content_type": {
- "operator": "EQUAL",
- "value": "string"
}, - "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "filename": {
- "operator": "EQUAL",
- "value": "string"
}, - "filesize": {
- "operator": "EQUAL",
- "value": 1
},
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_ID",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Initiates a File blob upload, returning a pre-signed S3 URL. Response contains:
blob_id (required for File creation)
upload_uri (pre-signed URL for upload)
timeout (expiration in seconds).
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Files.FileUpload( context.TODO(), &sdkgo.FileUploadRequest{}, )
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Delete File's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Files.FileDelete( context.TODO(), "id", &sdkgo.FileDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of File.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Files.FileLatest( context.TODO(), "id", &sdkgo.FileLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of File's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of File's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore File's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Files.FileRestore( context.TODO(), "id", &sdkgo.FileRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the File's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Files.FileHistory( context.TODO(), "id", &sdkgo.FileHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the File's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Files.FileRevision( context.TODO(), "id", 1, &sdkgo.FileRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "content_type": "string",
- "digest_multibase": "string",
- "filename": "string",
- "filesize": 1,
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Download of File's blob.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Create a request to support.
message required | string non-empty The message of the support request. |
type required | string Enum: "DATA_DUMP" "DELETION" "OTHER" "RECTIFICATION" The type of the support request. |
{- "message": "string",
- "type": "DATA_DUMP"
}
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Generate a new cryptographic key pair.
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
required | object (KeyGenerate) The Key generation request. |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
You could use KeyGenerate, if you want to rely to generated by Truvity key-pairs for CredentialIssue and PresentationIssue. Remember, that you do not have any option to get private key by Truvity API, you could only use it
If you prefer to keep private key, then you need to generate it manually. To use manually generated key CredentialIssue and PresentationIssue you need to import it.
To generate key-pair you have two options
How to install JWX
git clone https://github.com/lestrrat-go/jwx
cd jwx/cmd/jwx
go install -tags=jwx_es256k,jwx_secp256k1_pem .
➜ jwx --help
NAME:
jwx - Tools for various JWE/JWK/JWS/JWT operations
USAGE:
jwx [global options] command [command options] [arguments...]
COMMANDS:
jwa List available algorithms and types
jwe Work with JWE messages
jwk Work with JWK and JWK sets
jws Work with JWS messages
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
How generate private key by jwx
(output format JWK)
# ED25519
jwx jwx generate --type OKP --curve Ed25519
# P256
jwx jwx generate --type EC --curve P-256
# P384
jwx jwx generate --type EC --curve P-384
How to generate public key from private key by jwx
(input format - JWK, output format - JWK)
jwx jwk format -I json -O json - <(pathfile with private key in JWK format)
How to generate private key by OpenSSL (output format PEM - PKCS#8)
# ED25519
openssl genpkey -algorithm ed25519 | openssl pkcs8 -nocrypt -topk8
# P256
openssl ecparam -name prime256v1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
# P384
openssl ecparam -name secp384r1 -noout -genkey | openssl pkcs8 -nocrypt -topk8
How to transform existing private key to PKCS8 format by OpenSSL (input format PEM, output format - PEM PCKS#8)
openssl pkcs8 -nocrypt -topk8 <(pathfile with private key in PEM format)
How to transform private key to public key by OpenSSL (input format PEM, output format - PEM PKIX)
openssl pkey -pubout <(pathfile with private key in PKCS8 format)
Useful third-party documentation:
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
required | KeySecretEC (string) or KeySecretPKCS8 (string) or KeySecretJWK (string) Import secret key. Supported formats:
|
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "data": "-----BEGIN EC PRIVATE KEY-----\nMIGkAgEBBDBFFFnxnAX/kHeXe3g3mHEBTrGxD6WRyeH00FdzenriKZM5r1//lFA/\nmbfRZzsc+WOgBwYFK4EEACKhZANiAASbYZ57eYR4paYy4eJJSp4KuyqVYAcYb5jy\nTgWgSEmNWX3MOmMajcnQutABwvU2zsrcUZTCWZUnOem6gExZTrxbVgjEYXHy6yPb\ndxHSaJEbAalnHe1CHHwLIbwmBfoESeY=\n-----END EC PRIVATE KEY-----",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for Keys with extended filters capabilities.
Array of objects (KeyFilter) <= 4 items The filter to apply to the search. | |
Array of objects (KeySort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "publicKeyBase58": {
- "operator": "EQUAL",
- "value": "string"
}, - "publicKeyMultibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "publicKeyPem": {
- "operator": "EQUAL",
- "value": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----"
}, - "type": {
- "operator": "EQUAL",
- "value": "ED25519"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
], - "sort": [
- {
- "field": "DATA_TYPE",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Delete Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Keys.KeyDelete( context.TODO(), "id", &sdkgo.KeyDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of Key.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Keys.KeyLatest( context.TODO(), "id", &sdkgo.KeyLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Sign a JSON-LD representation of an unsigned Credential.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
The unsigned credential to sign.
"string"
"string"
Sign DIDComm Message Plaintext.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
The DIDCOMMMessage to sign.
"string"
"string"
Update labels of Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Sign a JSON-LD representation of an unsigned Presentation.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
The unsigned presentation to sign.
"string"
"string"
Restore Key's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Keys.KeyRestore( context.TODO(), "id", &sdkgo.KeyRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the Key's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Keys.KeyHistory( context.TODO(), "id", &sdkgo.KeyHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the Key's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Keys.KeyRevision( context.TODO(), "id", 1, &sdkgo.KeyRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "publicKeyBase58": "string",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "type": "ED25519"
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Generate an unsigned Verifiable Presentation in JSON-LD format from a list of Credentials.
composition_type required | string Value: "EMBED" |
credential_ids required | Array of strings <uuid> [ 1 .. 64 ] items [ items <uuid > ] |
holder required | string <uri> Just regular URI according to RFC 3986. |
{- "composition_type": "EMBED",
- "credential_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
}
"string"
Import a Verifiable Presentation's resource with blob_id.
To get blob_id call Upload first.
blob_id required | string <uuid> The ID that returned on Upload operation in blob_id field. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
object The annotations of the resource. | |
object The labels of the resource. |
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
composition_type required | string Value: "EMBED" |
credential_ids required | Array of strings <uuid> [ 1 .. 64 ] items [ items <uuid > ] |
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
holder | string <uri> Just regular URI according to RFC 3986. |
key_id required | string <uuid> The ID of the key to sign the credential. |
{- "composition_type": "EMBED",
- "credential_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "did_method": "key",
- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5"
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Search for Presentations with extended filters capabilities.
Array of objects (PresentationFilter) <= 4 items The filter to apply to the search. | |
Array of objects (PresentationSort) <= 4 items The sort order to apply to the search. |
{- "filter": [
- {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}, - "linked_credentials": {
- "annotations": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "created_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "data": {
- "digest_multibase": {
- "operator": "EQUAL",
- "value": "string"
}, - "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "valid_from": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "valid_until": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}
}, - "deleted_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "etag": {
- "operator": "EQUAL",
- "value": "string"
}, - "id": {
- "operator": "EQUAL",
- "value": "a860a344-d7b2-406e-828e-8d442f23f344"
}, - "labels": [
- {
- "operator": "EQUAL",
- "key": "string",
- "value": "string"
}
], - "modified_at": {
- "operator": "BETWEEN",
- "left": "2019-08-24T14:15:22Z",
- "right": "2019-08-24T14:15:22Z"
}, - "revision": {
- "operator": "EQUAL",
- "value": 1
}
}
}
], - "sort": [
- {
- "field": "DATA_TYPE",
- "order": "ASC"
}
]
}
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Initiates a Presentation blob upload, returning a pre-signed S3 URL. Response contains:
blob_id (required for Presentation creation)
upload_uri (pre-signed URL for upload)
timeout (expiration in seconds).
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationUpload( context.TODO(), &sdkgo.PresentationUploadRequest{}, )
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Delete Presentation's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) err := client.Presentations.PresentationDelete( context.TODO(), "id", &sdkgo.PresentationDeleteRequest{ IfMatch: "If-Match", }, )
{- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
], - "status": 100,
- "title": "string",
- "type": "/bad-request"
}
Get the latest version of Presentation.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationLatest( context.TODO(), "id", &sdkgo.PresentationLatestRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update annotations of Presentation's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The annotations of the resource. | ||
|
{- "annotations": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Update labels of Presentation's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
required | object The labels of the resource. | ||
|
{- "labels": {
- "property1": "string",
- "property2": "string"
}
}
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Restore Presentation's resource.
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
Idempotency-Key | string [ 32 .. 256 ] characters [a-zA-Z0-9-]{32,256} From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The Idempotency-Key is a free identifier created by the client to identify a request. It is used by the service to identify repeated request to ensure idempotent behavior by sending the same (or a similar) response without executing the request a second time. Clients should be careful as any subsequent requests with the same key may return the same response without further check. Thus, it is recommended to use a UUID version 4 (random) or any other random string with enough entropy to avoid collisions. Keys expire after 24 hours. Clients are responsible to stay within this limit, if they require idempotent behavior. See API Guideline Rule #181 for further details. |
If-Match required | string From Zalando RESTful API Guidelines - models/headers-1.0.0.yaml. The If-Match header field is used to declare a list of identifiers that are required to match the current resource version identifier in at least one position as a pre-condition for executing the request on the server side. This behavior is used to validate and reject optimistic updates, by checking if the resource version a consumer has based his changes on is outdated on arrival of the change request to prevent lost updates. If the pre-condition fails the server will respond with status code 412 (Precondition Failed). See RFC 9110 Section 13.1.1 as well as [API Guideline Rule #182][api-182] for further details. [api-182]: https://opensource.zalando.com/restful-api-guidelines/#182. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationRestore( context.TODO(), "id", &sdkgo.PresentationRestoreRequest{ IfMatch: "If-Match", }, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
History of the Presentation's resources.
id required | string <uuid> The ID of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationHistory( context.TODO(), "id", &sdkgo.PresentationHistoryRequest{}, )
{- "items": [
- {
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
]
}
Read the specific version of the Presentation's resource.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgo "github.com/truvity/sdk-go" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationRevision( context.TODO(), "id", 1, &sdkgo.PresentationRevisionRequest{}, )
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "data": {
- "digest_multibase": "string",
- "linked_credential_refs": [
- {
- "digest_multibase": "string",
- "resource_id": "4d5215ed-38bb-48ed-879a-fdb9ca58522f"
}
], - "type": [
- "string"
]
}, - "deleted_at": "2019-08-24T14:15:22Z",
- "etag": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kind": {
- "name": "string",
- "version": 1
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "modified_at": "2019-08-24T14:15:22Z",
- "revision": 1
}
Download of Presentation's blob.
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
If-None-Match | string The ETag of the latest version of the resource. |
"string"
Verify a Verifiable Presentation.
id required | string <uuid> The ID of the resource. |
import ( context "context" option "github.com/truvity/sdk-go/option" sdkgoclient "github.com/truvity/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "<YOUR_ApiKey>", ), ) response, err := client.Presentations.PresentationVerify( context.TODO(), "id", )
{- "verified": true
}