Create an AI agent.
Create an AI agent.
POST
https://app.softsolz.uk/api/v1/services/smart-chat/agentsRecent Requests
Kept only in this browserTimeStatusTook
Send a request with Try it to see it here.
Headers
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
namestringrequiredAgent name.
instructionsstringrequiredSystem instructions / persona.
descriptionstring | nullShort description.
allowed_tablesarray of stringsTenant tables the agent may read (unknown names are dropped).
visibilitystringVisibility (default "tenant").
shared_user_idsarray of integersMember ids (required when visibility=shared).
shared_role_idsarray of integersRole ids (when visibility=shared).
Response
Response Body
idstringAgent id.namestringAgent name.descriptionstring | nullShort description.instructionsstringSystem instructions / persona.allowed_tablesarray of stringsTenant tables the agent may read.visibilitystringVisibility.created_atstringCreation timestamp.updated_atstringLast update timestamp.Request
curl --request POST \ --url https://app.softsolz.uk/api/v1/services/smart-chat/agents \ --header 'Authorization: Bearer sk_live_your_key' \ --header 'Content-Type: application/json' \ --data '{ "name": "AR Assistant", "instructions": "You are an AR assistant that helps chase overdue invoices.", "description": "Chases overdue invoices.", "allowed_tables": [ "invoices", "customers" ], "visibility": "tenant"}'Credentials
Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.
Response · 201
{ "data": { "id": "a0000000-0000-0000-0000-000000000001", "name": "AR Assistant", "description": "Helps chase overdue invoices.", "instructions": "You are an AR assistant...", "allowed_tables": [ "invoices", "customers" ], "visibility": "tenant", "created_at": "2026-06-01T09:00:00.000Z", "updated_at": "2026-06-02T09:00:00.000Z" }}