{
	"openapi": "3.1.0",
	"info": {
		"title": "TapLogic API",
		"version": "2026-11-18",
		"description": "TapLogic public REST API: NFC tags, scans, members and webhooks. Bearer key authentication (tl_live_… or tl_test_…), stable error codes, cursor pagination, Idempotency-Key on writes.",
		"contact": {
			"name": "TapLogic",
			"url": "https://docs.taplogic.it"
		}
	},
	"servers": [
		{
			"url": "https://api.taplogic.it/v1"
		}
	],
	"x-taplogic-errors": [
		{
			"code": "authentication_required",
			"status": 401,
			"message": "No API key provided. Send it in the Authorization header: Bearer tl_live_…."
		},
		{
			"code": "invalid_api_key",
			"status": 401,
			"message": "The API key is invalid, expired or revoked."
		},
		{
			"code": "insufficient_scope",
			"status": 403,
			"message": "The API key does not have the scope this operation requires."
		},
		{
			"code": "test_mode_unsupported",
			"status": 403,
			"message": "This operation is not available with a test key. Use a tl_live_ key."
		},
		{
			"code": "resource_missing",
			"status": 404,
			"message": "The resource does not exist."
		},
		{
			"code": "route_not_found",
			"status": 404,
			"message": "This path does not exist in the API."
		},
		{
			"code": "invalid_request",
			"status": 400,
			"message": "The request is invalid."
		},
		{
			"code": "invalid_json",
			"status": 400,
			"message": "The request body is not valid JSON."
		},
		{
			"code": "invalid_cursor",
			"status": 400,
			"message": "The pagination cursor is invalid."
		},
		{
			"code": "invalid_api_version",
			"status": 400,
			"message": "The version in TapLogic-Version does not exist."
		},
		{
			"code": "payload_too_large",
			"status": 413,
			"message": "The request body is too large."
		},
		{
			"code": "idempotency_key_mismatch",
			"status": 422,
			"message": "This Idempotency-Key was already used with a different request."
		},
		{
			"code": "idempotency_in_progress",
			"status": 409,
			"message": "A request with this Idempotency-Key is still in progress."
		},
		{
			"code": "idempotency_replay_unavailable",
			"status": 409,
			"message": "The saved response for this Idempotency-Key can no longer be read. Check the state of the resource and use a new key."
		},
		{
			"code": "rate_limit_exceeded",
			"status": 429,
			"message": "Too many requests. Wait for the time in Retry-After."
		},
		{
			"code": "member_is_owner",
			"status": 409,
			"message": "The company owner cannot be removed."
		},
		{
			"code": "already_member",
			"status": 409,
			"message": "This person is already a member of the company."
		},
		{
			"code": "invitation_pending",
			"status": 409,
			"message": "A pending invitation already exists for this address."
		},
		{
			"code": "seats_exhausted",
			"status": 409,
			"message": "No seats are available. Free a seat or buy more."
		},
		{
			"code": "tag_deactivated",
			"status": 409,
			"message": "The tag is deactivated and cannot be changed."
		},
		{
			"code": "webhook_url_not_allowed",
			"status": 400,
			"message": "The webhook URL must be https and public."
		},
		{
			"code": "webhook_limit_reached",
			"status": 409,
			"message": "You reached the maximum number of webhook endpoints."
		},
		{
			"code": "webhook_disabled",
			"status": 409,
			"message": "The endpoint is disabled. Enable it before sending a test event."
		},
		{
			"code": "internal_error",
			"status": 500,
			"message": "Internal error. Retry: writes with an Idempotency-Key are safe."
		}
	],
	"x-taplogic-scopes": [
		"tags:read",
		"tags:write",
		"members:read",
		"members:write",
		"scans:read",
		"webhooks:write"
	],
	"x-taplogic-rate-limits": {
		"live": {
			"requests": 600,
			"windowSeconds": 60
		},
		"test": {
			"requests": 120,
			"windowSeconds": 60
		}
	},
	"x-taplogic-webhooks": {
		"attempts": 8,
		"retryDelaysSeconds": [
			60,
			240,
			960,
			3840,
			15360,
			28800,
			28800
		],
		"disableAfterFailures": 25,
		"timeoutSeconds": 10,
		"toleranceSeconds": 300,
		"previousSecretHours": 24
	},
	"x-taplogic-idempotency-hours": 24,
	"tags": [
		{
			"name": "Members",
			"description": "People in the company and invitations."
		},
		{
			"name": "Seats",
			"description": "Purchased and used seats."
		},
		{
			"name": "Tags",
			"description": "The company's NFC tags."
		},
		{
			"name": "Actions",
			"description": "Actions run on scan."
		},
		{
			"name": "Scans",
			"description": "Recorded scans."
		},
		{
			"name": "Webhooks",
			"description": "Endpoints that receive signed events."
		}
	],
	"security": [
		{
			"chiaveApi": []
		}
	],
	"paths": {
		"/members": {
			"get": {
				"operationId": "listMembers",
				"summary": "List members",
				"description": "Returns the company's members, newest first.\n\nRequired scope: `members:read`",
				"tags": [
					"Members"
				],
				"security": [
					{
						"chiaveApi": [
							"members:read"
						]
					}
				],
				"x-taplogic-scope": "members:read",
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"name": "role",
						"in": "query",
						"required": false,
						"description": "Filter by role.",
						"schema": {
							"type": "string",
							"enum": [
								"owner",
								"admin",
								"manager",
								"member"
							]
						}
					},
					{
						"name": "email",
						"in": "query",
						"required": false,
						"description": "Filter by exact email.",
						"schema": {
							"type": "string",
							"format": "email",
							"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/Member"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			},
			"post": {
				"operationId": "inviteMember",
				"summary": "Invite a member",
				"description": "Sends an email invitation. The invitation holds a seat until it expires. Emits member.invited.\n\nRequired scope: `members:write` · live keys only",
				"tags": [
					"Members"
				],
				"security": [
					{
						"chiaveApi": [
							"members:write"
						]
					}
				],
				"x-taplogic-scope": "members:write",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"201": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Invitation"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope, test_mode_unsupported, test_mode_unsupported",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"409": {
						"description": "already_member, invitation_pending, seats_exhausted",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				},
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"type": "object",
								"properties": {
									"email": {
										"type": "string",
										"maxLength": 254,
										"format": "email",
										"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
										"description": "Email of the person to invite."
									},
									"role": {
										"default": "member",
										"description": "Role in the company.",
										"type": "string",
										"enum": [
											"admin",
											"manager",
											"member"
										]
									}
								},
								"required": [
									"email"
								]
							}
						}
					}
				}
			}
		},
		"/members/{id}": {
			"get": {
				"operationId": "getMember",
				"summary": "Retrieve a member",
				"description": "Returns one member of the company.\n\nRequired scope: `members:read`",
				"tags": [
					"Members"
				],
				"security": [
					{
						"chiaveApi": [
							"members:read"
						]
					}
				],
				"x-taplogic-scope": "members:read",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Member"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "removeMember",
				"summary": "Remove a member",
				"description": "Removes the person from the company and frees the seat. Their tags stay without a member.\n\nRequired scope: `members:write` · live keys only",
				"tags": [
					"Members"
				],
				"security": [
					{
						"chiaveApi": [
							"members:write"
						]
					}
				],
				"x-taplogic-scope": "members:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DeletedObject"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope, test_mode_unsupported, test_mode_unsupported",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"409": {
						"description": "member_is_owner",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/seats": {
			"get": {
				"operationId": "getSeats",
				"summary": "Company seats",
				"description": "Seats purchased, used, held by pending invitations, and available.\n\nRequired scope: `members:read`",
				"tags": [
					"Seats"
				],
				"security": [
					{
						"chiaveApi": [
							"members:read"
						]
					}
				],
				"x-taplogic-scope": "members:read",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Seats"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/tags": {
			"get": {
				"operationId": "listTags",
				"summary": "List tags",
				"description": "Returns the company's tags. With a test key it returns only demo tags.\n\nRequired scope: `tags:read`",
				"tags": [
					"Tags"
				],
				"security": [
					{
						"chiaveApi": [
							"tags:read"
						]
					}
				],
				"x-taplogic-scope": "tags:read",
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"name": "status",
						"in": "query",
						"required": false,
						"description": "Filter by status.",
						"schema": {
							"type": "string",
							"enum": [
								"in_stock",
								"assigned",
								"active",
								"lost",
								"deactivated"
							]
						}
					},
					{
						"name": "member",
						"in": "query",
						"required": false,
						"description": "Filter by assigned member.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"name": "product",
						"in": "query",
						"required": false,
						"description": "Filter by product.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"name": "product_type",
						"in": "query",
						"required": false,
						"description": "Filter by product type.",
						"schema": {
							"type": "string",
							"enum": [
								"keychain",
								"display",
								"plate",
								"totem",
								"gadget",
								"other"
							]
						}
					},
					{
						"name": "code",
						"in": "query",
						"required": false,
						"description": "Filter by printed code.",
						"schema": {
							"type": "string",
							"minLength": 8,
							"maxLength": 8
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/Tag"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/tags/{id}": {
			"get": {
				"operationId": "getTag",
				"summary": "Retrieve a tag",
				"description": "Returns one of the company's tags.\n\nRequired scope: `tags:read`",
				"tags": [
					"Tags"
				],
				"security": [
					{
						"chiaveApi": [
							"tags:read"
						]
					}
				],
				"x-taplogic-scope": "tags:read",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Tag"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			},
			"patch": {
				"operationId": "updateTag",
				"summary": "Assign a tag or set its action",
				"description": "Assigns the tag to a member (member_id) and/or sets the scan action (action_id). null clears the value. A member change emits tag.assigned.\n\nRequired scope: `tags:write`",
				"tags": [
					"Tags"
				],
				"security": [
					{
						"chiaveApi": [
							"tags:write"
						]
					}
				],
				"x-taplogic-scope": "tags:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Tag"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"409": {
						"description": "tag_deactivated",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				},
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"type": "object",
								"properties": {
									"member_id": {
										"description": "Member to assign the tag to.",
										"anyOf": [
											{
												"type": "string",
												"minLength": 1,
												"maxLength": 64
											},
											{
												"type": "null"
											}
										]
									},
									"action_id": {
										"description": "Action run on scan.",
										"anyOf": [
											{
												"type": "string",
												"minLength": 1,
												"maxLength": 64
											},
											{
												"type": "null"
											}
										]
									}
								}
							}
						}
					}
				}
			}
		},
		"/tags/{id}/deactivate": {
			"post": {
				"operationId": "deactivateTag",
				"summary": "Deactivate a tag",
				"description": "The tag stops running actions: a scan shows a neutral page. This is final through the API.\n\nRequired scope: `tags:write`",
				"tags": [
					"Tags"
				],
				"security": [
					{
						"chiaveApi": [
							"tags:write"
						]
					}
				],
				"x-taplogic-scope": "tags:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Tag"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/actions": {
			"get": {
				"operationId": "listActions",
				"summary": "List actions",
				"description": "Actions configured in the company, to use as a tag's action_id.\n\nRequired scope: `tags:read`",
				"tags": [
					"Actions"
				],
				"security": [
					{
						"chiaveApi": [
							"tags:read"
						]
					}
				],
				"x-taplogic-scope": "tags:read",
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/Action"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/scans": {
			"get": {
				"operationId": "listScans",
				"summary": "List scans",
				"description": "Recorded scans, newest first. Filter by period, tag, member and outcome.\n\nRequired scope: `scans:read`",
				"tags": [
					"Scans"
				],
				"security": [
					{
						"chiaveApi": [
							"scans:read"
						]
					}
				],
				"x-taplogic-scope": "scans:read",
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"name": "from",
						"in": "query",
						"required": false,
						"description": "From this instant (inclusive), ISO 8601.",
						"schema": {
							"type": "string",
							"format": "date-time"
						}
					},
					{
						"name": "to",
						"in": "query",
						"required": false,
						"description": "Until this instant (exclusive), ISO 8601.",
						"schema": {
							"type": "string",
							"format": "date-time"
						}
					},
					{
						"name": "tag",
						"in": "query",
						"required": false,
						"description": "Filter by tag.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"name": "member",
						"in": "query",
						"required": false,
						"description": "Filter by member.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"name": "outcome",
						"in": "query",
						"required": false,
						"description": "Filter by outcome.",
						"schema": {
							"type": "string",
							"enum": [
								"ok",
								"tag_deactivated",
								"tag_unknown",
								"invalid_signature"
							]
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/Scan"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/webhooks": {
			"get": {
				"operationId": "listWebhookEndpoints",
				"summary": "List webhook endpoints",
				"description": "Endpoints in the key's mode (live or test).\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/WebhookEndpoint"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			},
			"post": {
				"operationId": "createWebhookEndpoint",
				"summary": "Create a webhook endpoint",
				"description": "Registers a URL that receives signed events. The signing secret appears only in this response.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"201": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WebhookEndpointWithSecret"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version, webhook_url_not_allowed",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"409": {
						"description": "webhook_limit_reached",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				},
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"type": "object",
								"properties": {
									"url": {
										"type": "string",
										"maxLength": 2048,
										"format": "uri",
										"description": "Public https URL that receives events."
									},
									"enabled_events": {
										"minItems": 1,
										"type": "array",
										"items": {
											"type": "string",
											"enum": [
												"tag.scanned",
												"tag.assigned",
												"member.invited",
												"member.joined",
												"*"
											]
										},
										"description": "Events to receive; \"*\" for all."
									},
									"description": {
										"anyOf": [
											{
												"type": "string",
												"maxLength": 255
											},
											{
												"type": "null"
											}
										]
									}
								},
								"required": [
									"url",
									"enabled_events"
								]
							}
						}
					}
				}
			}
		},
		"/webhooks/{id}": {
			"get": {
				"operationId": "getWebhookEndpoint",
				"summary": "Retrieve a webhook endpoint",
				"description": "Returns one webhook endpoint.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WebhookEndpoint"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			},
			"patch": {
				"operationId": "updateWebhookEndpoint",
				"summary": "Update a webhook endpoint",
				"description": "Changes URL, events or description. status=enabled re-enables a disabled endpoint and resets its errors.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WebhookEndpoint"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version, webhook_url_not_allowed",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				},
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"type": "object",
								"properties": {
									"url": {
										"type": "string",
										"maxLength": 2048,
										"format": "uri",
										"description": "Public https URL that receives events."
									},
									"enabled_events": {
										"minItems": 1,
										"type": "array",
										"items": {
											"type": "string",
											"enum": [
												"tag.scanned",
												"tag.assigned",
												"member.invited",
												"member.joined",
												"*"
											]
										},
										"description": "Events to receive; \"*\" for all."
									},
									"description": {
										"anyOf": [
											{
												"type": "string",
												"maxLength": 255
											},
											{
												"type": "null"
											}
										]
									},
									"status": {
										"type": "string",
										"enum": [
											"enabled",
											"disabled"
										]
									}
								}
							}
						}
					}
				}
			},
			"delete": {
				"operationId": "deleteWebhookEndpoint",
				"summary": "Delete a webhook endpoint",
				"description": "Deletes the endpoint and its delivery log. Queued retries stop.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DeletedObject"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/webhooks/{id}/rotate-secret": {
			"post": {
				"operationId": "rotateWebhookSecret",
				"summary": "Rotate the signing secret",
				"description": "Creates a new secret. The old one stays valid for expire_previous_in_hours hours (default 24, 0 = now): meanwhile each event carries two v1 signatures.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WebhookEndpointWithSecret"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				},
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"type": "object",
								"properties": {
									"expire_previous_in_hours": {
										"description": "Hours the previous secret stays valid.",
										"type": "integer",
										"minimum": 0,
										"maximum": 168
									}
								}
							}
						}
					}
				}
			}
		},
		"/webhooks/{id}/test": {
			"post": {
				"operationId": "sendWebhookTest",
				"summary": "Send a test event",
				"description": "Sends a signed webhook.test event now and returns the delivery result. No retries.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					},
					{
						"$ref": "#/components/parameters/IdempotencyKey"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/WebhookDelivery"
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"409": {
						"description": "webhook_disabled",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		},
		"/webhooks/{id}/deliveries": {
			"get": {
				"operationId": "listWebhookDeliveries",
				"summary": "Delivery log",
				"description": "Every delivery attempt for the endpoint, newest first, with HTTP status, duration and error.\n\nRequired scope: `webhooks:write`",
				"tags": [
					"Webhooks"
				],
				"security": [
					{
						"chiaveApi": [
							"webhooks:write"
						]
					}
				],
				"x-taplogic-scope": "webhooks:write",
				"parameters": [
					{
						"name": "id",
						"in": "path",
						"required": true,
						"description": "Resource identifier.",
						"schema": {
							"type": "string",
							"minLength": 1,
							"maxLength": 64
						}
					},
					{
						"name": "limit",
						"in": "query",
						"required": false,
						"description": "Items per page (1–100).",
						"schema": {
							"default": 20,
							"type": "integer",
							"minimum": 1,
							"maximum": 100
						}
					},
					{
						"name": "cursor",
						"in": "query",
						"required": false,
						"description": "Cursor returned as next_cursor by the previous page.",
						"schema": {
							"type": "string",
							"maxLength": 200
						}
					},
					{
						"name": "status",
						"in": "query",
						"required": false,
						"schema": {
							"type": "string",
							"enum": [
								"pending",
								"succeeded",
								"failed"
							]
						}
					},
					{
						"$ref": "#/components/parameters/TapLogicVersion"
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"headers": {
							"RateLimit-Limit": {
								"$ref": "#/components/headers/RateLimitLimit"
							},
							"RateLimit-Remaining": {
								"$ref": "#/components/headers/RateLimitRemaining"
							},
							"RateLimit-Reset": {
								"$ref": "#/components/headers/RateLimitReset"
							},
							"Request-Id": {
								"$ref": "#/components/headers/RequestId"
							}
						},
						"content": {
							"application/json": {
								"schema": {
									"type": "object",
									"properties": {
										"object": {
											"type": "string",
											"const": "list"
										},
										"data": {
											"type": "array",
											"items": {
												"$ref": "#/components/schemas/WebhookDelivery"
											}
										},
										"has_more": {
											"type": "boolean"
										},
										"next_cursor": {
											"type": [
												"string",
												"null"
											]
										}
									},
									"required": [
										"object",
										"data",
										"has_more",
										"next_cursor"
									],
									"additionalProperties": false
								}
							}
						}
					},
					"400": {
						"description": "invalid_request, invalid_json, invalid_cursor, invalid_api_version",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"401": {
						"description": "authentication_required, invalid_api_key",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"403": {
						"description": "insufficient_scope",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"404": {
						"description": "resource_missing",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					},
					"429": {
						"description": "rate_limit_exceeded",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Error"
								}
							}
						}
					}
				}
			}
		}
	},
	"webhooks": {
		"tag.scanned": {
			"post": {
				"summary": "tag.scanned",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicSignature"
					}
				],
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Event"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Reply 2xx within 10 seconds."
					}
				}
			}
		},
		"tag.assigned": {
			"post": {
				"summary": "tag.assigned",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicSignature"
					}
				],
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Event"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Reply 2xx within 10 seconds."
					}
				}
			}
		},
		"member.invited": {
			"post": {
				"summary": "member.invited",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicSignature"
					}
				],
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Event"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Reply 2xx within 10 seconds."
					}
				}
			}
		},
		"member.joined": {
			"post": {
				"summary": "member.joined",
				"parameters": [
					{
						"$ref": "#/components/parameters/TapLogicSignature"
					}
				],
				"requestBody": {
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Event"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Reply 2xx within 10 seconds."
					}
				}
			}
		}
	},
	"components": {
		"securitySchemes": {
			"chiaveApi": {
				"type": "http",
				"scheme": "bearer",
				"bearerFormat": "tl_live_… | tl_test_…",
				"description": "Scopes: tags:read, tags:write, members:read, members:write, scans:read, webhooks:write"
			}
		},
		"parameters": {
			"TapLogicVersion": {
				"name": "TapLogic-Version",
				"in": "header",
				"required": false,
				"description": "API version (date). Without it, the latest applies.",
				"schema": {
					"type": "string",
					"enum": [
						"2026-11-18"
					],
					"default": "2026-11-18"
				}
			},
			"IdempotencyKey": {
				"name": "Idempotency-Key",
				"in": "header",
				"required": false,
				"description": "Unique key to retry a write without duplicating it. Valid for 24 hours.",
				"schema": {
					"type": "string",
					"maxLength": 255
				}
			},
			"TapLogicSignature": {
				"name": "TapLogic-Signature",
				"in": "header",
				"required": true,
				"description": "t=<unix>,v1=<hex HMAC-SHA256(secret, t + \".\" + body)>",
				"schema": {
					"type": "string"
				}
			}
		},
		"headers": {
			"RateLimitLimit": {
				"description": "Requests allowed in the window.",
				"schema": {
					"type": "integer"
				}
			},
			"RateLimitRemaining": {
				"description": "Requests left in the window.",
				"schema": {
					"type": "integer"
				}
			},
			"RateLimitReset": {
				"description": "Seconds until the window resets.",
				"schema": {
					"type": "integer"
				}
			},
			"RequestId": {
				"description": "Request identifier, quote it to support.",
				"schema": {
					"type": "string"
				}
			}
		},
		"schemas": {
			"Member": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "member"
					},
					"user_id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"name": {
						"type": "string"
					},
					"email": {
						"type": "string",
						"format": "email",
						"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
					},
					"role": {
						"type": "string",
						"enum": [
							"owner",
							"admin",
							"manager",
							"member"
						]
					},
					"status": {
						"type": "string",
						"enum": [
							"active",
							"disabled"
						]
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"user_id",
					"name",
					"email",
					"role",
					"status",
					"created_at"
				],
				"additionalProperties": false
			},
			"Invitation": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "invitation"
					},
					"email": {
						"type": "string",
						"format": "email",
						"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
					},
					"role": {
						"type": "string",
						"enum": [
							"admin",
							"manager",
							"member"
						]
					},
					"status": {
						"type": "string",
						"const": "pending"
					},
					"expires_at": {
						"type": "string",
						"format": "date-time"
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"email",
					"role",
					"status",
					"expires_at",
					"created_at"
				],
				"additionalProperties": false
			},
			"DeletedObject": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string"
					},
					"deleted": {
						"type": "boolean",
						"const": true
					}
				},
				"required": [
					"id",
					"object",
					"deleted"
				],
				"additionalProperties": false
			},
			"Seats": {
				"type": "object",
				"properties": {
					"object": {
						"type": "string",
						"const": "seats"
					},
					"purchased": {
						"type": "integer"
					},
					"used": {
						"type": "integer"
					},
					"pending": {
						"type": "integer",
						"description": "Pending invitations holding a seat."
					},
					"available": {
						"type": "integer"
					}
				},
				"required": [
					"object",
					"purchased",
					"used",
					"pending",
					"available"
				],
				"additionalProperties": false
			},
			"Tag": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "tag"
					},
					"code": {
						"type": "string",
						"description": "8-character code printed on the tag."
					},
					"url": {
						"type": "string",
						"format": "uri",
						"description": "Fixed URL written in the chip."
					},
					"email_address": {
						"type": "string",
						"format": "email",
						"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
						"description": "The tag's unique address for the email action."
					},
					"chip_type": {
						"type": "string",
						"enum": [
							"ntag213",
							"ntag215",
							"ntag216",
							"ntag424"
						]
					},
					"status": {
						"type": "string",
						"enum": [
							"in_stock",
							"assigned",
							"active",
							"lost",
							"deactivated"
						]
					},
					"product": {
						"anyOf": [
							{
								"type": "object",
								"properties": {
									"id": {
										"type": "string",
										"minLength": 1,
										"maxLength": 64
									},
									"type": {
										"type": "string",
										"enum": [
											"keychain",
											"display",
											"plate",
											"totem",
											"gadget",
											"other"
										]
									},
									"name": {
										"type": "string"
									}
								},
								"required": [
									"id",
									"type",
									"name"
								],
								"additionalProperties": false
							},
							{
								"type": "null"
							}
						]
					},
					"member_id": {
						"anyOf": [
							{
								"type": "string",
								"minLength": 1,
								"maxLength": 64
							},
							{
								"type": "null"
							}
						]
					},
					"action_id": {
						"anyOf": [
							{
								"type": "string",
								"minLength": 1,
								"maxLength": 64
							},
							{
								"type": "null"
							}
						]
					},
					"location": {
						"anyOf": [
							{
								"$ref": "#/components/schemas/Location"
							},
							{
								"type": "null"
							}
						],
						"description": "The tag's place, or its product's when the tag has none."
					},
					"livemode": {
						"type": "boolean"
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					},
					"updated_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"code",
					"url",
					"email_address",
					"chip_type",
					"status",
					"product",
					"member_id",
					"action_id",
					"location",
					"livemode",
					"created_at",
					"updated_at"
				],
				"additionalProperties": false
			},
			"Location": {
				"type": "object",
				"properties": {
					"address": {
						"type": [
							"string",
							"null"
						]
					},
					"latitude": {
						"anyOf": [
							{
								"type": "number",
								"minimum": -90,
								"maximum": 90
							},
							{
								"type": "null"
							}
						]
					},
					"longitude": {
						"anyOf": [
							{
								"type": "number",
								"minimum": -180,
								"maximum": 180
							},
							{
								"type": "null"
							}
						]
					}
				},
				"required": [
					"address",
					"latitude",
					"longitude"
				],
				"additionalProperties": false,
				"description": "Installation place for fixed products."
			},
			"Action": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "action"
					},
					"type": {
						"type": "string",
						"enum": [
							"whatsapp",
							"vcard",
							"link",
							"review",
							"page",
							"form",
							"video",
							"reorder",
							"email",
							"instagram",
							"facebook",
							"tiktok",
							"linkedin",
							"youtube"
						]
					},
					"name": {
						"type": "string"
					},
					"scope": {
						"type": "string",
						"enum": [
							"company",
							"product_type",
							"member",
							"tag"
						]
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					},
					"updated_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"type",
					"name",
					"scope",
					"created_at",
					"updated_at"
				],
				"additionalProperties": false
			},
			"Scan": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "scan"
					},
					"tag_id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"code": {
						"type": "string",
						"description": "Code of the scanned tag."
					},
					"occurred_at": {
						"type": "string",
						"format": "date-time"
					},
					"outcome": {
						"type": "string",
						"enum": [
							"ok",
							"tag_deactivated",
							"tag_unknown",
							"invalid_signature"
						]
					},
					"action_type": {
						"anyOf": [
							{
								"type": "string",
								"enum": [
									"whatsapp",
									"vcard",
									"link",
									"review",
									"page",
									"form",
									"video",
									"reorder",
									"email",
									"instagram",
									"facebook",
									"tiktok",
									"linkedin",
									"youtube"
								]
							},
							{
								"type": "null"
							}
						]
					},
					"member_id": {
						"anyOf": [
							{
								"type": "string",
								"minLength": 1,
								"maxLength": 64
							},
							{
								"type": "null"
							}
						]
					},
					"product_id": {
						"anyOf": [
							{
								"type": "string",
								"minLength": 1,
								"maxLength": 64
							},
							{
								"type": "null"
							}
						]
					},
					"destination": {
						"description": "Where the person was sent (URL without query, mailto:, vcard).",
						"type": [
							"string",
							"null"
						]
					},
					"location_source": {
						"anyOf": [
							{
								"type": "string",
								"enum": [
									"installation",
									"network"
								]
							},
							{
								"type": "null"
							}
						],
						"description": "installation = configured place; network = city from the network."
					},
					"country": {
						"type": [
							"string",
							"null"
						]
					},
					"city": {
						"type": [
							"string",
							"null"
						]
					},
					"livemode": {
						"type": "boolean"
					}
				},
				"required": [
					"id",
					"object",
					"tag_id",
					"code",
					"occurred_at",
					"outcome",
					"action_type",
					"member_id",
					"product_id",
					"destination",
					"location_source",
					"country",
					"city",
					"livemode"
				],
				"additionalProperties": false
			},
			"WebhookEndpoint": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "webhook_endpoint"
					},
					"url": {
						"type": "string",
						"format": "uri"
					},
					"description": {
						"type": [
							"string",
							"null"
						]
					},
					"enabled_events": {
						"type": "array",
						"items": {
							"type": "string",
							"enum": [
								"tag.scanned",
								"tag.assigned",
								"member.invited",
								"member.joined",
								"*"
							]
						}
					},
					"status": {
						"type": "string",
						"enum": [
							"enabled",
							"disabled"
						]
					},
					"disabled_reason": {
						"type": [
							"string",
							"null"
						]
					},
					"livemode": {
						"type": "boolean"
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					},
					"updated_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"url",
					"description",
					"enabled_events",
					"status",
					"disabled_reason",
					"livemode",
					"created_at",
					"updated_at"
				],
				"additionalProperties": false
			},
			"WebhookEndpointWithSecret": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "webhook_endpoint"
					},
					"url": {
						"type": "string",
						"format": "uri"
					},
					"description": {
						"type": [
							"string",
							"null"
						]
					},
					"enabled_events": {
						"type": "array",
						"items": {
							"type": "string",
							"enum": [
								"tag.scanned",
								"tag.assigned",
								"member.invited",
								"member.joined",
								"*"
							]
						}
					},
					"status": {
						"type": "string",
						"enum": [
							"enabled",
							"disabled"
						]
					},
					"disabled_reason": {
						"type": [
							"string",
							"null"
						]
					},
					"livemode": {
						"type": "boolean"
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					},
					"updated_at": {
						"type": "string",
						"format": "date-time"
					},
					"secret": {
						"type": "string",
						"description": "whsec_… signing secret: shown only now."
					}
				},
				"required": [
					"id",
					"object",
					"url",
					"description",
					"enabled_events",
					"status",
					"disabled_reason",
					"livemode",
					"created_at",
					"updated_at",
					"secret"
				],
				"additionalProperties": false
			},
			"WebhookDelivery": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"object": {
						"type": "string",
						"const": "webhook_delivery"
					},
					"endpoint_id": {
						"type": "string",
						"minLength": 1,
						"maxLength": 64
					},
					"event_id": {
						"type": "string"
					},
					"event_type": {
						"type": "string",
						"enum": [
							"tag.scanned",
							"tag.assigned",
							"member.invited",
							"member.joined",
							"webhook.test"
						]
					},
					"attempt": {
						"type": "integer"
					},
					"status": {
						"type": "string",
						"enum": [
							"pending",
							"succeeded",
							"failed"
						]
					},
					"response_status": {
						"anyOf": [
							{
								"type": "integer"
							},
							{
								"type": "null"
							}
						]
					},
					"duration_ms": {
						"anyOf": [
							{
								"type": "integer"
							},
							{
								"type": "null"
							}
						]
					},
					"error": {
						"type": [
							"string",
							"null"
						]
					},
					"next_retry_at": {
						"anyOf": [
							{
								"type": "string",
								"format": "date-time"
							},
							{
								"type": "null"
							}
						]
					},
					"created_at": {
						"type": "string",
						"format": "date-time"
					}
				},
				"required": [
					"id",
					"object",
					"endpoint_id",
					"event_id",
					"event_type",
					"attempt",
					"status",
					"response_status",
					"duration_ms",
					"error",
					"next_retry_at",
					"created_at"
				],
				"additionalProperties": false
			},
			"Error": {
				"type": "object",
				"properties": {
					"error": {
						"type": "object",
						"properties": {
							"code": {
								"type": "string",
								"description": "Stable code, safe to branch on."
							},
							"message": {
								"type": "string",
								"description": "Human-readable message in Italian or English (Accept-Language)."
							},
							"doc_url": {
								"type": "string",
								"format": "uri"
							},
							"param": {
								"type": "string"
							},
							"details": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"param": {
											"type": "string"
										},
										"message": {
											"type": "string"
										}
									},
									"required": [
										"param",
										"message"
									],
									"additionalProperties": false
								}
							},
							"request_id": {
								"type": "string"
							}
						},
						"required": [
							"code",
							"message",
							"doc_url",
							"request_id"
						],
						"additionalProperties": false
					}
				},
				"required": [
					"error"
				],
				"additionalProperties": false
			},
			"Event": {
				"type": "object",
				"required": [
					"id",
					"object",
					"type",
					"api_version",
					"created",
					"livemode",
					"data"
				],
				"properties": {
					"id": {
						"type": "string",
						"pattern": "^evt_[A-Za-z0-9]{24}$"
					},
					"object": {
						"const": "event"
					},
					"type": {
						"type": "string",
						"enum": [
							"tag.scanned",
							"tag.assigned",
							"member.invited",
							"member.joined",
							"webhook.test"
						]
					},
					"api_version": {
						"type": "string"
					},
					"created": {
						"type": "integer",
						"description": "Unix timestamp"
					},
					"livemode": {
						"type": "boolean"
					},
					"data": {
						"type": "object",
						"properties": {
							"object": {
								"type": "object"
							}
						}
					}
				}
			}
		}
	}
}
