cURL
curl "https://api.alura.io/v1/workspace/knowledge/policies" \
-H "Authorization: Bearer $ALURA_API_KEY"const res = await fetch('https://api.alura.io/v1/workspace/knowledge/policies', {
headers: {
Authorization: `Bearer ${process.env.ALURA_API_KEY}`,
},
});
console.log(await res.json());import json
import os
import urllib.request
request = urllib.request.Request(
"https://api.alura.io/v1/workspace/knowledge/policies",
headers={
"Authorization": f"Bearer {os.environ['ALURA_API_KEY']}",
},
)
with urllib.request.urlopen(request) as response:
print(json.load(response)){
"object": "list",
"data": [
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "gift_wrap",
"title": "Gift Wrap",
"text": "Gift wrapping is free on every mug.",
"source": "seller",
"read_only": true,
"updated_at": "2026-10-15T09:30:00.123Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
}
],
"has_more": false,
"next_cursor": null,
"total": {
"value": 10,
"relation": "eq"
}
}{
"type": "https://docs.alura.io/errors/invalid_request",
"title": "Invalid request",
"status": 400,
"code": "invalid_request",
"detail": "Invalid request",
"suggestion": "Fix the request as the detail says, then send it again.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized",
"detail": "Unauthorized",
"suggestion": "Send a valid API key as `Authorization: Bearer alura_sk_...`.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/credits_exhausted",
"title": "API credits exhausted",
"status": 402,
"code": "credits_exhausted",
"detail": "API credits exhausted",
"suggestion": "Upgrade the plan or wait for the monthly reset.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/plan_required",
"title": "Plan required",
"status": 403,
"code": "plan_required",
"detail": "Plan required",
"suggestion": "Upgrade the workspace plan to use this operation.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/not_found",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "Not found",
"suggestion": "Check the ID, or search for it first.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/method_not_allowed",
"title": "Method not allowed",
"status": 405,
"code": "method_not_allowed",
"detail": "Method not allowed",
"suggestion": "Use one of the methods in the Allow header.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/rate_limited",
"title": "Rate limited",
"status": 429,
"code": "rate_limited",
"detail": "Rate limited",
"suggestion": "Wait for Retry-After, then retry.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/internal_error",
"title": "Internal error",
"status": 500,
"code": "internal_error",
"detail": "Internal error",
"suggestion": "Retry; if it keeps failing, report the request_id.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/base_unverifiable",
"title": "Base not verifiable",
"status": 503,
"code": "base_unverifiable",
"detail": "Base not verifiable",
"suggestion": "Alura could not read from Etsy the text or inventory this write names a version of, so it could not check it, and nothing was written. Retry after Retry-After.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}Knowledge
List policies
List your shops’ policies as the assistant reads them: Etsy’s shop and return policies as Alura last synced them, then your own.
cURL
curl "https://api.alura.io/v1/workspace/knowledge/policies" \
-H "Authorization: Bearer $ALURA_API_KEY"const res = await fetch('https://api.alura.io/v1/workspace/knowledge/policies', {
headers: {
Authorization: `Bearer ${process.env.ALURA_API_KEY}`,
},
});
console.log(await res.json());import json
import os
import urllib.request
request = urllib.request.Request(
"https://api.alura.io/v1/workspace/knowledge/policies",
headers={
"Authorization": f"Bearer {os.environ['ALURA_API_KEY']}",
},
)
with urllib.request.urlopen(request) as response:
print(json.load(response)){
"object": "list",
"data": [
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "22841907",
"key": "gift_wrap",
"title": "Gift Wrap",
"text": "Gift wrapping is free on every mug.",
"source": "seller",
"read_only": true,
"updated_at": "2026-10-15T09:30:00.123Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "30577120",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "shipping",
"title": "Shipping",
"text": "Orders ship within 3 business days.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "refunds",
"title": "Refunds",
"text": "Refunds within 30 days of delivery.",
"source": "etsy",
"read_only": true,
"updated_at": "2025-01-10T00:00:00.000Z"
},
{
"object": "workspace.policy",
"shop_id": "48911633",
"key": "return_policy.1074205613",
"title": "Returns and exchanges",
"text": "Returns accepted within 30 days. Exchanges accepted.",
"source": "etsy",
"read_only": true,
"updated_at": "2026-10-16T06:00:00.000Z"
}
],
"has_more": false,
"next_cursor": null,
"total": {
"value": 10,
"relation": "eq"
}
}{
"type": "https://docs.alura.io/errors/invalid_request",
"title": "Invalid request",
"status": 400,
"code": "invalid_request",
"detail": "Invalid request",
"suggestion": "Fix the request as the detail says, then send it again.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"code": "unauthorized",
"detail": "Unauthorized",
"suggestion": "Send a valid API key as `Authorization: Bearer alura_sk_...`.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/credits_exhausted",
"title": "API credits exhausted",
"status": 402,
"code": "credits_exhausted",
"detail": "API credits exhausted",
"suggestion": "Upgrade the plan or wait for the monthly reset.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/plan_required",
"title": "Plan required",
"status": 403,
"code": "plan_required",
"detail": "Plan required",
"suggestion": "Upgrade the workspace plan to use this operation.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/not_found",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "Not found",
"suggestion": "Check the ID, or search for it first.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/method_not_allowed",
"title": "Method not allowed",
"status": 405,
"code": "method_not_allowed",
"detail": "Method not allowed",
"suggestion": "Use one of the methods in the Allow header.",
"retryable": false,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/rate_limited",
"title": "Rate limited",
"status": 429,
"code": "rate_limited",
"detail": "Rate limited",
"suggestion": "Wait for Retry-After, then retry.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/internal_error",
"title": "Internal error",
"status": 500,
"code": "internal_error",
"detail": "Internal error",
"suggestion": "Retry; if it keeps failing, report the request_id.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}{
"type": "https://docs.alura.io/errors/base_unverifiable",
"title": "Base not verifiable",
"status": 503,
"code": "base_unverifiable",
"detail": "Base not verifiable",
"suggestion": "Alura could not read from Etsy the text or inventory this write names a version of, so it could not check it, and nothing was written. Retry after Retry-After.",
"retryable": true,
"request_id": "req_01JQ5W3H8M2N4P6R8T0V2X4Z6B"
}Cost: Free.
Your shops’ policies, read-only: the shop policies and return policies from Etsy as Alura last synced them (
curl "https://api.alura.io/v1/workspace/knowledge/policies" \
-H "Authorization: Bearer $ALURA_API_KEY"
source: etsy), then the policies saved in Alura’s Messages Assistant (source: seller), by shop. Covers every connected shop unless shop_id narrows it; a shop outside the workspace is 404. Needs the knowledge:read scope; any workspace member may read.