Retrieve a list of support messages
Fetch a list of support messages with optional filters like prefix, public, unpublished, and pagination using limit and next token.
GET
Parameters
Query Parameters
Id
Filter resources by their unique identifier
Org_id
Filter resources by the organization they belong to
Limit
How many items to return at one time (max 100)
Next
Pagination token for retrieving the next page of results
Order
Sort order for the results (ascending or descending)
SortBy
Field name to sort the results by
Wallet_id
Filter support messages by wallet ID
When_created[$gt]
Filter messages created after this date and time
When_created[$lt]
Filter messages created before this date and time
When_created[$gte]
Filter messages created on or after this date and time
When_created[$lte]
Filter messages created on or before this date and time
| Status code | Description |
|---|---|
| 200 | A list of support and the next pagination token. |
| 400 | Bad request error - the request contains invalid parameters or malformed data |
| 500 | Internal server error - an unexpected error occurred on the server |
cURL
curl -L \"https://blockv-labs.io/support?id={id}&org_id={org_id}&limit={limit}&next={next}&order={order}&sortBy={sortBy}&wallet_id={wallet_id}&when_created[$gt]={when_created[$gt]}&when_created[$lt]={when_created[$lt]}&when_created[$gte]={when_created[$gte]}&when_created[$lte]={when_created[$lte]}" \-H 'Accept: application/json'
Response
{"messages": [{"id": "string","wallet_id": "string","content": "string","assets": [{"id": "string","name": "string","type": "string","url": "string","hash": "string","is_public": false,"when_created": "2024-01-01T00:00:00Z"}],"when_modified": "2024-01-01T00:00:00Z","when_created": "2024-01-01T00:00:00Z"}],"next": "string"}
json
{"type": "object","required": ["messages"],"properties": {"messages": {"type": "array","description": "Array of support message objects.","items": {"type": "object","description": "Support message entity containing user inquiries and support requests","required": ["id","wallet_id","title","content","when_modified","when_created"],"properties": {"id": {"type": "string","description": "Unique identifier for the support message","x-oapi-codegen-extra-tags": {"bson": "_id","json": "id"},"x-go-type": "id.ID","x-go-type-import": {"path": "github.com/vlabsio/smarttoken/pkg/types/id"},"x-go-type-skip-optional-pointer": true},"wallet_id": {"type": "string","description": "Identifier of the wallet/user who created the support message","x-oapi-codegen-extra-tags": {"bson": "wallet_id"},"x-go-type": "id.ID","x-go-type-import": {"path": "github.com/vlabsio/smarttoken/pkg/types/id"},"x-go-type-skip-optional-pointer": true},"content": {"type": "string","description": "Main content body of the support message","x-oapi-codegen-extra-tags": {"bson": "content,omitempty"}},"assets": {"type": "array","description": "Optional attachments or assets associated with the support message","items": {"type": "object","description": "Represents a file or media asset stored in the platform","required": ["id","url"],"properties": {"id": {"type": "string","description": "Unique identifier for the asset","x-oapi-codegen-extra-tags": {"bson": "id,omitempty"}},"name": {"type": "string","description": "Human-readable name of the asset","x-oapi-codegen-extra-tags": {"bson": "name,omitempty"}},"type": {"type": "string","description": "MIME type of the asset (e.g., image/jpeg, application/pdf)","x-oapi-codegen-extra-tags": {"bson": "type,omitempty"}},"url": {"type": "string","description": "Public URL where the asset can be accessed","x-oapi-codegen-extra-tags": {"bson": "url,omitempty"}},"hash": {"type": "string","description": "Cryptographic hash of the asset content for integrity verification","x-oapi-codegen-extra-tags": {"bson": "hash,omitempty"}},"is_public": {"type": "boolean","description": "Whether the asset is publicly accessible without authentication","x-oapi-codegen-extra-tags": {"bson": "is_public,omitempty"}},"when_created": {"type": "string","format": "date-time","description": "Timestamp when the asset was uploaded","x-oapi-codegen-extra-tags": {"bson": "when_created,omitempty"}}}},"x-oapi-codegen-extra-tags": {"bson": "assets,omitempty"},"x-go-type-skip-optional-pointer": true},"when_modified": {"type": "string","format": "date-time","description": "Timestamp when the support message was last modified","x-oapi-codegen-extra-tags": {"bson": "when_modified,omitempty"}},"when_created": {"type": "string","format": "date-time","description": "Timestamp when the support message was created","x-oapi-codegen-extra-tags": {"bson": "when_created,omitempty"}}}}},"next": {"type": "string","description": "Pagination token for the next set of results, if any.","x-go-type-skip-optional-pointer": true}}}