Truvity Platform API. (0.28.6)
Download OpenAPI specification:Download
Truvity Platform API.
Create a new API key.
Create a new API key resource.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "secret": "pa$$word",
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for API Keys.
Search for API Keys with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (ApiKeyFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (ApiKeySort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Get the latest version of API Key.
Get the latest version of API Key.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update API Key.
Update API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete API Key.
Delete API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore API Key.
Restore API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read API Key's history.
History of the API Key's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the API Key.
Read the specific version of the API Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "expiration": "2019-08-24T14:15:22Z",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Import Credential.
Import a Verifiable Credential.
Authorizations:
query Parameters
blob_id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Credentials.
Search for Credentials with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (CredentialFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (CredentialSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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": {
- "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "multihash": {
- "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"
}
}, - "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Upload Credential's blob.
The upload Credential's blob operation.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Get the latest version of Credential.
Get the latest version of Credential.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete Credential.
Delete Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore Credential.
Restore Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read Credential's history.
History of the Credential's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the Credential.
Read the specific version of the Credential's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Download of Credential's blob.
Download of Credential's blob.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
"string"
Verify Credential.
Verify a Verifiable Credential.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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", )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "verified": true
}
Get DID-Document.
Get DID-Document for did:web Method Specification.
path Parameters
tenant_id required | string <uuid> The ID of the tenant. |
header Parameters
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 429
- 500
- default
{- "@context": [
- "string"
], - "id": "strings",
- "verificationMethod": [
- {
- "publicKeyBase58": "string",
- "id": "strings",
- "type": "Multikey",
- "controller": "strings",
- "@context": [
- "string"
]
}
], - "authentication": [
- "strings"
], - "assertionMethod": [
- "strings"
],
}
Receive DIDComm Message.
Receive DIDComm Message.
path Parameters
tenant_id required | string <uuid> The ID of the tenant. |
Request Body schema: application/didcomm-signed+jsonrequired
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
"string"
Response samples
- 400
- 415
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Search for DIDComm Messages.
Search for DIDComm Messages with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (DidcommMessageFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (DidcommMessageSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- null
], - "proof": {
- "type": null,
- "id": null
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Send a DIDComm Message.
Send a DIDComm Message to a recipient.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (DIDCommMessageSend) The request to send a DIDComm message. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "to": "strings",
- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "credentials": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "disable_transitive_closure": true,
- "files": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "presentations": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Get the latest version of DIDComm Message.
Get the latest version of DIDComm Message.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete DIDComm Message.
Delete DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore DIDComm Message.
Restore DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read DIDComm Message's history.
History of the DIDComm Message's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- null
], - "proof": {
- "type": null,
- "id": null
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the DIDComm Message.
Read the specific version of the DIDComm Message's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "from": "strings",
- "to": "strings",
- "credentials": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "files": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}, - "presentations": {
- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Return the tenant's DID(did:web) document.
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.
Authorizations:
header Parameters
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "@context": [
- "string"
], - "id": "strings",
- "verificationMethod": [
- {
- "publicKeyBase58": "string",
- "id": "strings",
- "type": "Multikey",
- "controller": "strings",
- "@context": [
- "string"
]
}
], - "authentication": [
- "strings"
], - "assertionMethod": [
- "strings"
],
}
Create Draft.
Create Draft's resource.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (DraftCreate) The schema for creating a draft. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Drafts.
Search for Drafts with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (DraftFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (DraftSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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": {
- "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "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"
}
}
}, - "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Get the latest version of Draft.
Get the latest version of Draft.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update Draft.
Update Draft's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Request Body schema: application/jsonrequired
required | object (DraftCreate) The schema for creating a draft. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete Draft.
Delete Draft's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore Draft.
Restore Draft's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read Draft's history.
History of the Draft's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the Draft.
Read the specific version of the Draft's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "meta": {
- "subject": "string",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "schema": {
- "fields": [
- {
- "kind": "BOOLEAN",
- "name": "string",
- "is_array": true,
- "not_empty": true,
- "title": "string",
- "type": "string"
}
], - "vocab_namespace": "string",
- "vocab_name": "string",
- "vc_type": [
- "string"
]
}, - "values": {
- "property1": null,
- "property2": null
}
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Export Draft.
Generate an unsigned Verifiable Credential in JSON-LD format from a Draft.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
Request Body schema: application/jsonrequired
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. |
Responses
Request samples
- Payload
{- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
"string"
Issue a Verifiable Credential from Draft.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
Request Body schema: application/jsonrequired
key_id required | string <uuid> The ID of the key to sign the credential. |
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. |
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. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "did_method": "key",
- "valid_from": "2019-08-24T14:15:22Z",
- "valid_until": "2019-08-24T14:15:22Z"
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "data_model": {
- "flavor_name": "VC1_1",
- "issuanceDate": "2019-08-24T14:15:22Z",
- "type": [
- "string"
], - "proof": {
- "type": "string",
- "id": "string"
}, - "expirationDate": "2019-08-24T14:15:22Z",
}, - "type": [
- "string"
], - "valid_from": "2019-08-24T14:15:22Z",
- "multihash": "string",
- "valid_until": "2019-08-24T14:15:22Z"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Create File.
Create File's resource.
Authorizations:
query Parameters
blob_id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (FileData) The data to create a file. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "filename": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Files.
Search for Files with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (FileFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (FileSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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"
}, - "filename": {
- "operator": "EQUAL",
- "value": "string"
}, - "filesize": {
- "operator": "EQUAL",
- "value": 1
}, - "multihash": {
- "operator": "EQUAL",
- "value": "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_CONTENT_TYPE",
- "order": "ASC"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Upload File's blob.
The upload File's blob operation.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Get the latest version of File.
Get the latest version of File.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update File.
Update File's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
query Parameters
blob_id | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Request Body schema: application/jsonrequired
required | object (FileData) The data to create a file. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "filename": "string"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete File.
Delete File's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore File.
Restore File's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read File's history.
History of the File's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the File.
Read the specific version of the File's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "content_type": "string",
- "filename": "string",
- "filesize": 1,
- "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Download of File's blob.
Download of File's blob.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Response samples
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Create a request to support.
Create a request to support.
Authorizations:
Request Body schema: application/jsonrequired
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. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "message": "string",
- "type": "DATA_DUMP"
}
Response samples
- 400
- 401
- 403
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Generate a new cryptographic key pair.
Generate a new cryptographic key pair.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | object (KeyGenerate) The Key generation request. |
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": {
- "type": "ED25519"
}, - "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Import a cryptographic key pair
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
- OpenSSL - OpenSSL commands
- JWX tool - https://github.com/lestrrat-go/jwx/blob/main/cmd/jwx/README.md
How to install JWX
- Download & Install Golang - https://go.dev/doc/install
- Clone & Build & Install github.com/lestrrat-go/jwx
git clone https://github.com/lestrrat-go/jwx cd jwx/cmd/jwx go install -tags=jwx_es256k,jwx_secp256k1_pem .
- Verify that you correctly install everything
➜ 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:
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
required | KeySecretEC (string) or KeySecretPKCS8 (string) or KeySecretJWK (string) Import secret key. Supported formats:
|
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "data": "-----BEGIN EC PRIVATE KEY-----\nMIGkAgEBBDBFFFnxnAX/kHeXe3g3mHEBTrGxD6WRyeH00FdzenriKZM5r1//lFA/\nmbfRZzsc+WOgBwYFK4EEACKhZANiAASbYZ57eYR4paYy4eJJSp4KuyqVYAcYb5jy\nTgWgSEmNWX3MOmMajcnQutABwvU2zsrcUZTCWZUnOem6gExZTrxbVgjEYXHy6yPb\ndxHSaJEbAalnHe1CHHwLIbwmBfoESeY=\n-----END EC PRIVATE KEY-----",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Keys.
Search for Keys with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (KeyFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (KeySort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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": {
- "type": {
- "operator": "EQUAL",
- "value": "ED25519"
}, - "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-----"
}
}, - "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Get the latest version of Key.
Get the latest version of Key.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Update Key.
Update Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete Key.
Delete Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Sign an unsigned Credential.
Sign a JSON-LD representation of an unsigned Credential.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
query Parameters
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
Request Body schema: application/jsonrequired
The unsigned credential to sign.
Responses
Request samples
- Payload
"string"
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
"string"
Sign DIDComm Message Plaintext.
Sign DIDComm Message Plaintext.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
query Parameters
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
Request Body schema: application/jsonrequired
The DIDCOMMMessage to sign.
Responses
Request samples
- Payload
"string"
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
"string"
Sign an unsigned Presentation.
Sign a JSON-LD representation of an unsigned Presentation.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
query Parameters
did_method | string Default: "web" Enum: "key" "web" All supported DID methods. Default is "web". |
Request Body schema: application/jsonrequired
The unsigned presentation to sign.
Responses
Request samples
- Payload
"string"
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 429
- 500
- default
"string"
Restore Key.
Restore Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read Key's history.
History of the Key's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the Key.
Read the specific version of the Key's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": "ED25519",
- "publicKeyMultibase": "string",
- "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEm2Gee3mEeKWmMuHiSUqeCrsqlWAHGG+Y\n8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K3FGUwlmVJznpuoBMWU68W1YIxGFx8usj\n23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n-----END PUBLIC KEY-----",
- "publicKeyJwk": "crv: P-384\nkty: EC\nx: m2Gee3mEeKWmMuHiSUqeCrsqlWAHGG-Y8k4FoEhJjVl9zDpjGo3J0LrQAcL1Ns7K\n\"y\": 3FGUwlmVJznpuoBMWU68W1YIxGFx8usj23cR0miRGwGpZx3tQhx8CyG8JgX6BEnm\n\t\t",
- "publicKeyBase58": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Export Presentation.
Generate an unsigned Verifiable Presentation in JSON-LD format from a list of Credentials.
Authorizations:
Request Body schema: application/jsonrequired
holder required | string <uri> Just regular URI according to RFC 3986. Examples: url: - https://example.com/ - https://example.com/some/path urn: - urn:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18 - urn:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18/some/path did: - did:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18 - did:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18/some/path . |
credential_ids required | Array of strings <uuid> [ 1 .. 64 ] items [ items <uuid > ] |
composition_type required | string Value: "EMBED" |
Responses
Request samples
- Payload
{- "credential_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "composition_type": "EMBED"
}
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
"string"
Import Presentation.
Import a Verifiable Presentation.
Authorizations:
query Parameters
blob_id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Request Body schema: application/jsonrequired
object The annotations of the resource. | |
object The labels of the resource. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}
}
Response samples
- 201
- 400
- 401
- 403
- 404
- 415
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Issue Presentation.
Authorizations:
Request Body schema: application/jsonrequired
key_id required | string <uuid> The ID of the key to sign the credential. |
credential_ids required | Array of strings <uuid> [ 1 .. 64 ] items [ items <uuid > ] |
composition_type required | string Value: "EMBED" |
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. Examples: url: - https://example.com/ - https://example.com/some/path urn: - urn:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18 - urn:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18/some/path did: - did:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18 - did:uuid:dd1edaad-a160-44d8-931f-1afc27d31b18/some/path . |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",
- "credential_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "composition_type": "EMBED",
- "did_method": "key",
}
Response samples
- 200
- 400
- 401
- 403
- 405
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Search for Presentations.
Search for Presentations with extended filters capabilities.
Authorizations:
Request Body schema: application/jsonrequired
Array of objects or null (PresentationFilter) <= 4 items The filter to apply to the search. | |
Array of objects or null (PresentationSort) <= 4 items The sort order to apply to the search. |
Responses
Request samples
- Payload
- Go
- Python
- TypeScript
{- "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": {
- "type": {
- "operator": "IN",
- "values": [
- "string"
]
}, - "multihash": {
- "operator": "EQUAL",
- "value": "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"
}
]
}
Response samples
- 200
- 400
- 401
- 403
- 415
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Upload Presentation's blob.
The upload Presentation's blob operation.
Authorizations:
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "blob_id": "8249af2f-dd23-416e-b9c4-6cb13a792190",
- "timeout": 1,
}
Get the latest version of Presentation.
Get the latest version of Presentation.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Delete Presentation.
Delete Presentation's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "type": "/bad-request",
- "title": "string",
- "status": 100,
- "detail": "string",
- "errors": [
- {
- "location": "string",
- "message": "string",
- "value": null
}
],
}
Restore Presentation.
Restore Presentation's resource.
Authorizations:
path Parameters
id required | string <uuid> The primary and unique identifier of the resource (inside tenant) according to RFC 4122. |
header Parameters
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][api-230] for further details. [api-230]: https://opensource.zalando.com/restful-api-guidelines/#230. |
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. |
Responses
Request samples
- Go
- Python
- TypeScript
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", }, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 405
- 412
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Read Presentation's history.
History of the Presentation's resources.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "items": [
- {
- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
]
}
Read the specific version of the Presentation.
Read the specific version of the Presentation's resource.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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{}, )
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
{- "kind": {
- "name": "string",
- "version": 1
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "etag": "string",
- "revision": 1,
- "created_at": "2019-08-24T14:15:22Z",
- "modified_at": "2019-08-24T14:15:22Z",
- "annotations": {
- "property1": "string",
- "property2": "string"
}, - "labels": {
- "property1": "string",
- "property2": "string"
}, - "data": {
- "type": [
- "string"
], - "multihash": "string"
}, - "deleted_at": "2019-08-24T14:15:22Z"
}
Download of Presentation's blob.
Download of Presentation's blob.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
revision required | integer <int32> [ 1 .. 999999 ] The revision of the resource. |
header Parameters
If-None-Match | string The ETag of the latest version of the resource. |
Responses
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
- default
"string"
Verify Presentation.
Verify a Verifiable Presentation.
Authorizations:
path Parameters
id required | string <uuid> The ID of the resource. |
Responses
Request samples
- Go
- Python
- TypeScript
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", )
Response samples
- 200
- 400
- 401
- 403
- 429
- 500
- default
{- "verified": true
}