curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/macros' \
--header 'X-API-Key: YOUR_API_KEY'
{
"limit": 1,
"macros": [
{
"auto_send": true,
"body": "string",
"channel": "string",
"created_at": "string",
"id": "string",
"name": "string",
"org_id": "string",
"rule_name": "string",
"slots": [],
"source": "string",
"status": "candidate",
"tags": [],
"title": "string",
"tool": {
"arguments": null,
"name": null
},
"updated_at": "string"
}
],
"offset": 1,
"total": 1
}
List this org's macros.
Required scope: read
GET
/
api
/
v1
/
macros
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/macros' \
--header 'X-API-Key: YOUR_API_KEY'
{
"limit": 1,
"macros": [
{
"auto_send": true,
"body": "string",
"channel": "string",
"created_at": "string",
"id": "string",
"name": "string",
"org_id": "string",
"rule_name": "string",
"slots": [],
"source": "string",
"status": "candidate",
"tags": [],
"title": "string",
"tool": {
"arguments": null,
"name": null
},
"updated_at": "string"
}
],
"offset": 1,
"total": 1
}
Required scope:
read
Query parameters
integer
Page size
integer
Page offset
string
candidate | approved | archived
string
Only macros bound to this policy rule
Response
ListMacrosResponse
integer
required
Macro[]
required
Show Macro
Show Macro
boolean
required
string
required
string
string
required
string
required
string
required
Upsert key within an org, matching the rules convention.
string
required
string
The policy rule whose citation selects this macro.
string[]
required
Merge fields parsed from
body at write time.string
MacroStatus
required
string[]
string
string
required
integer
required
integer
required
Status codes
| Code | Meaning |
|---|---|
200 | Macros for this organization |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
curl --request GET \
--url 'https://api.nsr.stateset.com/api/v1/macros' \
--header 'X-API-Key: YOUR_API_KEY'
{
"limit": 1,
"macros": [
{
"auto_send": true,
"body": "string",
"channel": "string",
"created_at": "string",
"id": "string",
"name": "string",
"org_id": "string",
"rule_name": "string",
"slots": [],
"source": "string",
"status": "candidate",
"tags": [],
"title": "string",
"tool": {
"arguments": null,
"name": null
},
"updated_at": "string"
}
],
"offset": 1,
"total": 1
}