Skip to main content
GET
/
v2.0
/
locales
/
{localeId}
/
yesnointents
Get YesNoIntents
curl --request GET \
  --url 'https://api-trial.cognigy.ai/new/v2.0/locales/{localeId}/yesnointents?api_key=' \
  --header 'Authorization: Bearer <token>' \
  --header 'X-API-Key: <api-key>'
{
  "yesIntent": {
    "isDisabled": true,
    "name": "pizza",
    "_id": "<string>",
    "rules": [
      "<string>"
    ]
  },
  "noIntent": {
    "isDisabled": true,
    "name": "pizza",
    "_id": "<string>",
    "rules": [
      "<string>"
    ]
  },
  "rejectIntent": {
    "isDisabled": true,
    "name": "pizza",
    "_id": "<string>",
    "rules": [
      "<string>"
    ]
  }
}

Authorizations

X-API-Key
string
header
required

Supply the API Key in the HTTP-Header

api_key
string
query
required

Supply the API Key in the Url-Query

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

localeId
string
required

The Id of the Locale

Required string length: 24

Response

Returns an object containing the yesIntent, noIntent, rejectIntent for the given locale

yesIntent
object
noIntent
object
rejectIntent
object