{
  "openapi": "3.1.0",
  "info": {
    "title": "Identify public API",
    "version": "1.1.0",
    "description": "Read-only public service discovery. Versioned workflow endpoints use /v1/. No payments or automated bookings. Legacy pricing and sandbox paths remain supported. Cursor pagination and versioning policy: https://identify.com.au/api-versioning.md."
  },
  "servers": [
    {
      "url": "https://identify.com.au"
    }
  ],
  "paths": {
    "/_api/pricing": {
      "get": {
        "operationId": "getIdentifyPricing",
        "summary": "Read indicative AUD prices, scope and commitment",
        "responses": {
          "200": {
            "description": "Published indicative pricing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pricing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "description": "Requested currency; Identify currently publishes AUD only.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "AUD"
              ]
            }
          }
        ]
      }
    },
    "/_api/agent-sandbox": {
      "get": {
        "operationId": "listSandboxTools",
        "summary": "List safe public tools",
        "responses": {
          "200": {
            "description": "Public tool definitions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sandbox": {
                      "type": "boolean"
                    },
                    "readOnly": {
                      "type": "boolean"
                    },
                    "description": {
                      "type": "string"
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tool"
                      }
                    }
                  },
                  "required": [
                    "sandbox",
                    "readOnly",
                    "description",
                    "tools"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "description": "Per-IP fixed-window request budget enforced by the hosting firewall.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Request limit per 60-second window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "tool",
            "in": "query",
            "description": "Optional exact public tool name to return only that tool's contract.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      },
      "post": {
        "operationId": "runSandboxTool",
        "summary": "Run a read-only public tool",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tool": {
                    "type": "string",
                    "enum": [
                      "identify_get_services",
                      "identify_get_pricing",
                      "identify_list_functions",
                      "identify_list_workflows",
                      "identify_find_workflows",
                      "identify_get_function_playbook",
                      "identify_list_industries",
                      "identify_get_os_overview"
                    ]
                  },
                  "arguments": {
                    "type": "object",
                    "properties": {
                      "query": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 300,
                        "description": "Public task for identify_find_workflows."
                      },
                      "department": {
                        "type": "string",
                        "maxLength": 100,
                        "description": "Department name or slug for workflow tools."
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "tool"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Public tool result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sandbox": {
                      "type": "boolean"
                    },
                    "result": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "required": [
                    "sandbox",
                    "result"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "description": "Per-IP fixed-window request budget enforced by the hosting firewall.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Request limit per 60-second window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "Invalid tool or arguments",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SandboxError"
                }
              }
            }
          }
        },
        "description": "Execute a public read-only tool. No writes occur, so retries with identical arguments have no external side effects. An Idempotency-Key may be supplied for retry correlation; no write transaction is created.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Optional client-generated retry correlation key; read-only requests remain side-effect-free.",
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ]
      }
    },
    "/_api/v1/workflows": {
      "get": {
        "operationId": "listIdentifyWorkflowsV1",
        "summary": "List public illustrative workflows with filtering and pagination",
        "description": "Use to discover a manageable AI improvement. Query returns up to twelve matches; without query returns the applicable public library. All results are examples, not measured client outcomes.",
        "parameters": [
          {
            "name": "department",
            "in": "query",
            "description": "Optional department name or URL slug.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "Short non-confidential task to match.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 300
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum results per page; defaults to 20.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 84,
              "default": 20
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Legacy zero-based offset. Prefer cursor; do not combine with cursor.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor from the previous response. Keep the same query and department. Do not combine with offset.",
            "schema": {
              "type": "string",
              "pattern": "^w1_[0-9]{1,8}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of illustrative workflows",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkflowPage"
                }
              }
            },
            "headers": {
              "RateLimit-Policy": {
                "description": "Per-IP fixed-window request budget enforced by the hosting firewall.",
                "schema": {
                  "type": "string"
                }
              },
              "RateLimit-Limit": {
                "description": "Request limit per 60-second window.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query or pagination",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; respect Retry-After.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/_api/ask": {
      "get": {
        "operationId": "getIdentifyNlwebDescription",
        "summary": "Read the public NLWeb search endpoint description",
        "responses": {
          "200": {
            "description": "NLWeb endpoint metadata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "protocol": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "method": {
                      "type": "string"
                    },
                    "endpoint": {
                      "type": "string"
                    },
                    "example": {
                      "type": "object"
                    },
                    "publicReadOnly": {
                      "type": "boolean"
                    },
                    "documentation": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "protocol",
                    "version",
                    "method",
                    "endpoint",
                    "example",
                    "publicReadOnly",
                    "documentation"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Invalid query parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "version",
            "in": "query",
            "description": "Requested supported NLWeb protocol version.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "0.55"
              ]
            }
          }
        ]
      },
      "post": {
        "operationId": "askIdentifyPublicSources",
        "summary": "Search public service information, prices and workflow documentation",
        "description": "NLWeb 0.55. Public read-only search. Request JSON responses or Server-Sent Events using prefer.streaming. Does not process bookings, payments or private data.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 300,
                        "description": "Public information question. Do not include confidential or personal data."
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "additionalProperties": false
                  },
                  "prefer": {
                    "type": "object",
                    "properties": {
                      "streaming": {
                        "type": "boolean",
                        "default": false
                      },
                      "response_format": {
                        "type": "string",
                        "enum": [
                          "conversational_search"
                        ]
                      }
                    },
                    "required": [],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "query"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured public search results, or an NLWeb event stream when requested.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NLWebAnswer"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid query or response format",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NLWebFailure"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited; respect Retry-After.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Pricing": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "const": "AUD"
          },
          "tax": {
            "type": "string"
          },
          "audience": {
            "type": "string"
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Offer"
            }
          },
          "pricingUrl": {
            "type": "string"
          },
          "commitment": {
            "type": "string"
          }
        },
        "required": [
          "currency",
          "tax",
          "audience",
          "offers",
          "pricingUrl",
          "commitment"
        ],
        "additionalProperties": false
      },
      "Offer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "maxPrice": {
            "type": "number"
          },
          "priceType": {
            "type": "string"
          },
          "billing": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "price",
          "priceType",
          "billing",
          "description",
          "url"
        ],
        "additionalProperties": false
      },
      "Tool": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "inputSchema": {
            "type": "object"
          },
          "outputSchema": {
            "type": "object"
          },
          "annotations": {
            "type": "object"
          }
        },
        "required": [
          "name",
          "description",
          "inputSchema"
        ]
      },
      "Workflow": {
        "type": "object",
        "properties": {
          "department": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "flow": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "department",
          "title",
          "flow",
          "url"
        ],
        "additionalProperties": false
      },
      "WorkflowPage": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workflow"
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "limit": {
                "type": "integer",
                "minimum": 0
              },
              "offset": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "nextOffset": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "nextCursor": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Opaque cursor for the next page or null at the end."
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "limit",
              "offset",
              "total",
              "nextOffset",
              "nextCursor",
              "hasMore"
            ],
            "additionalProperties": false
          },
          "illustrative": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "items",
          "pagination",
          "illustrative"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "resolution": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message",
              "resolution"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "SandboxError": {
        "type": "object",
        "properties": {
          "sandbox": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ]
      },
      "NLWebAnswer": {
        "type": "object",
        "properties": {
          "_meta": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "response_type": {
                "type": "string"
              },
              "response_format": {
                "type": "string"
              }
            },
            "required": [
              "version",
              "response_type"
            ],
            "additionalProperties": false
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "@type": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "offers": {
                  "type": "object"
                }
              },
              "required": [
                "@type"
              ]
            }
          }
        },
        "required": [
          "_meta",
          "results"
        ],
        "additionalProperties": false
      },
      "NLWebFailure": {
        "type": "object",
        "properties": {
          "_meta": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "response_type": {
                "type": "string"
              },
              "response_format": {
                "type": "string"
              }
            },
            "required": [
              "version",
              "response_type"
            ],
            "additionalProperties": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "_meta",
          "error"
        ],
        "additionalProperties": false
      }
    }
  },
  "externalDocs": {
    "description": "Versioning, deprecation and migration policy",
    "url": "https://identify.com.au/api-versioning.md"
  }
}