GET
/
generativeagent
/
v1
/
state
curl --request GET \
  --url https://api.sandbox.asapp.com/generativeagent/v1/state \
  --header 'asapp-api-id: <api-key>' \
  --header 'asapp-api-secret: <api-key>'
{
  "state": "ready",
  "lastGenerativeAgentMessageId": "01HWXSGMT91HCS18BV0CRGEKY8",
  "currentTaskName": "PaymentDetails",
  "inputVariables": {
    "input-context": "Customer chatted in to check the details of their last payment.",
    "last-customer-purchase": "2024-05-07"
  }
}

Authorizations

asapp-api-id
string
header
required
asapp-api-secret
string
header
required

Query Parameters

criteria
object

Search criteria

Response

200 - application/json

Successfully fetched state of generative agent for a conversation

The response is of type object.