Distributed State
GET/api/v1/distributed-state/{namespace}
Authorization
bearer_token In: header
Path Parameters
Namespace to list keys from
Query Parameters
Full-text search query applied to key name
1-indexed page number
int640 <= valuePage size
int640 <= valueSort field (created_at, updated_at, key)
Sort order (asc or desc)
Value in
- "asc"
- "desc"
Additional filter expressions in the form field:operator:value
Response Body
application/json
curl -X GET "https://example.com/api/v1/distributed-state/string"{ "keys": [ { "created_at": "2019-08-24T14:15:22Z", "key": "string", "namespace": "string", "state_id": "string", "ttl_seconds": 0, "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": "string" } ], "namespace": "string", "pagination": { "has_more": true, "page": 0, "page_size": 0, "total": 0 }}DELETE/api/v1/distributed-state/{namespace}
Authorization
bearer_token In: header
Path Parameters
Namespace to delete
Query Parameters
Optional pattern to limit deletion
Must be 'true' to proceed
Response Body
application/json
curl -X DELETE "https://example.com/api/v1/distributed-state/string?confirm=string"{ "deleted_count": 0, "namespace": "string", "pattern_used": "string"}GET/api/v1/distributed-state/{namespace}/{key}
Authorization
bearer_token In: header
Path Parameters
Namespace for the state key
State key identifier
Response Body
application/json
curl -X GET "https://example.com/api/v1/distributed-state/string/string"{ "created_at": "2019-08-24T14:15:22Z", "key": "string", "namespace": "string", "state_id": "string", "ttl_seconds": 0, "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": "string"}POST/api/v1/distributed-state/{namespace}/{key}
Authorization
bearer_token In: header
Path Parameters
Namespace for the state key
State key identifier
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to set or update a distributed state value
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/distributed-state/string/string" \ -H "Content-Type: application/json" \ -d '{ "value": null }'{ "created_at": "2019-08-24T14:15:22Z", "key": "string", "namespace": "string", "operation": "created", "ttl_seconds": 0, "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": "string"}DELETE/api/v1/distributed-state/{namespace}/{key}
Authorization
bearer_token In: header
Path Parameters
Namespace for the state key
State key identifier
Response Body
curl -X DELETE "https://example.com/api/v1/distributed-state/string/string"