Needs the read scope.
Pages its answer: pass the cursor back for the next page, at most 100 items a page.
Filters: product_id (eq), entry_id (eq).
Sorts: issued.
Call
- Tool:
list_certificates - Scope:
read - Reads only.
- Acts on a store.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
product |
object |
No | Only this product’s certificates. |
query |
object |
No |
{
"type": "object",
"properties": {
"product": {
"description": "Only this product's certificates.",
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"id"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"slug"
],
"additionalProperties": false
}
]
},
"query": {
"type": "object",
"properties": {
"filter": {
"type": "object",
"properties": {
"product_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"eq": {
"type": "string"
}
},
"minProperties": 1,
"additionalProperties": false
}
]
},
"entry_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"eq": {
"type": "string"
}
},
"minProperties": 1,
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"sort": {
"type": "object",
"properties": {
"name": {
"type": "string",
"enum": [
"issued"
]
},
"direction": {
"type": "string",
"enum": [
"asc",
"desc"
]
}
},
"additionalProperties": false
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"cursor": {
"type": "string",
"maxLength": 8192
},
"count": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}Answer
| Name | Type | Required | Description |
|---|---|---|---|
total |
number |
No | |
items |
array of object |
Yes | |
cursor |
string or null |
Yes |
The answer’s full shape is on its API reference page.