Invoke Skill Search Query
post
/api/v1/skills/search.query/invoke(Utility) Search the knowledge base directly.
Searches the firm's knowledge base and regulatory material for the `query` you supply. It returns ranked passages, each with its source, section, content and confidence, plus counts by jurisdiction. Set `jurisdiction` to rank one region's material first; other regions are not excluded.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
queryrequired | string | The question or phrase to search the knowledge base for. |
sources | string[] | Optional list of knowledge source names you would prefer; accepted today but does not yet narrow the results. |
jurisdiction | string | null | Optional region code such as UK, AU, US, CA or NZ; results from that region rank first and others are not excluded. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/search.query/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"query": "string",
"sources": [
"string"
],
"jurisdiction": null
}'