# Extract entities from a phrase POST /v1/a/adapters/ids/entities/extract Select code sample ``` const url = 'https://example.com/v1/a/adapters/ids/entities/extract'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"types":["example"],"language":"example","time_zone":"example","timestamp":1,"phrase":"example"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ``` curl --request POST \ --url https://example.com/v1/a/adapters/ids/entities/extract \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data '{ "types": [ "example" ], "language": "example", "time_zone": "example", "timestamp": 1, "phrase": "example" }' ``` - /v1/a/adapters/ids/entities/extract ## Permission This operation needs the permission [`ids:entity:write`](https://docs.aiva.apifonica.com/concepts/roles-and-permissions/#ids-entity-write). ## Authorizations - **[bearerAuth](https://docs.aiva.apifonica.com/api/account/#bearerauth)** ## Request Bodyrequired Media typeapplication/json object **types** required Array\ **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" } ``` ## Responses ### 200 OK Media typeapplication/json Array\ 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": {} } ] ``` ### 204 No entities extracted ### 400 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 } ``` ### 401 Unauthorized ### 403 Forbidden ### 502 Bad gateway (upstream adapter error)