https://your-workspace.api.useago.com/api/sdk/v1, and every request carries the headers described in Mobile Authentication.
To configure the forms themselves, see Ticket Form Customization.
Create a Ticket
Endpoint:POST /tickets
Content-Type: multipart/form-data
Send
priority and typology explicitly, using the values above. Your ticketing system receives them as they are.201 Created):
Load the Ticket Form
Endpoint:GET /config
AGO resolves the user’s ticket form and returns it as ticket_form in each entry of permissions. Render that form and send its id as ticket_form_id.
Form Properties
Field Properties
Option Properties
Rendering Order
The AGO widget reveals fields one at a time: subject, then typology, then priority, then each custom field inposition order once the previous one is filled. Fields with always_visible appear immediately. Follow the same order so users see the form you designed.
Custom Field Values
Send one{id, value} entry per field in custom_fields, encoded as a JSON string:
idis the field’sexternal_id, or itsidwhenexternal_idis empty.- For fields with options,
valueis an option’svalue, not itsname. - Checkbox values are
"true"or"false". - Include hidden fields with their default option value.
Ticket Form in the Conversation
When the user asks for a human, the agent can offer a ticket inside the conversation. The stream fromPOST /messages then contains an event like this one:
- Show your ticket form, pre-filled with
ticket. The AI fills it from the conversation; the user can edit it. - Create the ticket with
POST /tickets, passingthread.idasconversation_id. - Report the result so the agent knows the ticket exists:
{"formData": {"success": false}}.
Kotlin (Android) Example
AgoClient is the request builder from Mobile Authentication. A Swift version is in Mobile SDK Examples.
Related
- Mobile Authentication - Headers and user identity
- Mobile Messaging - Send messages and stream answers
- Mobile SDK Examples - Complete Swift client
- Ticket Form Customization - Configure forms, fields and conditions
