Skip to content

Extract entities from a phrase

POST
/v1/adapters/ids/entities/extract
curl --request POST \
--url https://example.com/v1/adapters/ids/entities/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "types": [ "example" ], "language": "example", "time_zone": "example", "timestamp": 1, "phrase": "example" }'
Media typeapplication/json
object
types
required
Array<string>
language
required
string
time_zone
string
timestamp
integer format: int64
phrase
required
string
Examplegenerated
{
"types": [
"example"
],
"language": "example",
"time_zone": "example",
"timestamp": 1,
"phrase": "example"
}

OK

Media typeapplication/json
Array<object>
object
type
required
string
value
required

Shape depends on the entity type (e.g. date, time, address, phone-number).

object
key
additional properties
any
Examplegenerated
[
{
"type": "example",
"value": {}
}
]

No entities extracted

Bad request

Media typeapplication/json
object
name
required
string
message
required
string
code
required
integer
status
required
integer
Examplegenerated
{
"name": "example",
"message": "example",
"code": 1,
"status": 1
}

Unauthorized

Forbidden

Bad gateway (upstream adapter error)