canonical: https://jentic.com/apis/messagebird.com/messagebird-ner-api

# Messagebird NamedEntityRecognition

Jentic publishes the only available OpenAPI specification for NamedEntityRecognition, keeping it validated and agent-ready. The MessageBird Named Entity Recognition API extracts structured entities (names, locations, dates, organisations) from short text inputs, turning unstructured customer messages into machine-readable slots. The predict-entities endpoint accepts a phrase and returns each detected entity with its type, while the supported-languages endpoint indicates which locales the model recognises. NER is the natural pairing for intent classification when an agent needs both 'what does the customer want' and 'what specific values did they mention'.

## For AI agents

Extract structured entities (names, places, dates, organisations) from a customer message so an agent can fill slots without keyword parsing.

## Scope

Does not handle intent classification, language detection, or message delivery - use for named entity extraction from short text only.

## Capabilities

- Extract dates and locations from a customer SMS to pre-fill an appointment booking form
- Pull person names and organisations out of inbound chat replies to enrich a CRM record
- Identify monetary amounts mentioned in a billing question before routing it to finance
- Confirm whether a target language is supported by NER before submitting prediction traffic
- Combine entity extraction with intent classification to drive end-to-end automated replies

## Use cases

### Appointment Booking Slot Filling

When a customer texts 'Can I move my appointment to Friday at the Dublin clinic?', NER extracts the date and the location as structured entities. The agent can then call the calendar API with real values instead of trying to parse the phrase by hand. This makes natural-language booking flows reliable enough to deploy without a human in the loop.

Example prompt: POST the booking message to /api/v1/predict-entities and use the returned date and location entities to call the calendar booking endpoint

### CRM Record Enrichment

Inbound free-text messages from leads often mention company names, contact people, and locations. NER turns these mentions into structured fields the CRM can consume, so an agent can update a lead record without the user filling out a form. Entity types are returned alongside values so the integration knows which CRM property to update.

Example prompt: Call POST /api/v1/predict-entities on a sales reply and update the CRM contact's company and city fields with the returned entity values

### Compliance Redaction

When recording or analysing customer messages, agents need to redact personally identifying information. NER identifies names, locations, and other PII candidates so the redaction step can mask them before storage or model training. Pair this with a deny list to suppress sensitive entity types entirely.

Example prompt: Run POST /api/v1/predict-entities on the message, replace each PERSON or LOCATION entity with a placeholder, and store the redacted text

### AI Agent Integration via Jentic

An AI agent uses Jentic to discover NER by intent search ('extract entities from a message'). Jentic returns the predict-entities operation with its input schema, so the agent submits a phrase and receives structured entity records in one load-and-execute step. The MessageBird AccessKey lives in your Jentic One instance and never enters the agent's context.

Example prompt: Use Jentic to search 'extract entities from a phrase', load the predict-entities schema, and execute it to populate the slots of a downstream booking action

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | /api/v1/predict-entities | Extract named entities from a submitted phrase |
| GET | /api/v1/supported-languages | List supported NER languages |

## Key resources

- **Predictions** — Detected named entities returned for a submitted phrase, with type and value
- **Supported Languages** — List of language codes the NER model recognises

## Why Jentic

- **Setup:** Wiring the MessageBird NamedEntityRecognition API by hand means attaching your AccessKey to each request against the ner.messagebird host, shaping the predict-entities body, and handling retries yourself. Through Jentic you install once, import the NamedEntityRecognition API from the API Directory, store the AccessKey once, and your agent calls it.
- **Permission scoping:** The NamedEntityRecognition API takes the text in the request body rather than as a URL path resource, so scope your agent to the operations it needs: limit it to POST /api/v1/predict-entities and the supported-languages lookup, and leave out anything else.
- **Credential handling:** Your MessageBird AccessKey is stored once, encrypted, by your own Jentic One instance and attached at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'extract entities from a phrase', and Jentic returns the predict-entities operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **MessageBird Intent** — Classify the same phrase into an intent label so an agent has both meaning and slots
- **MessageBird Language Detection** — Detect the language first to confirm NER coverage before extraction
- **OpenAI API** — General-purpose LLM that can extract entities via prompting with flexible custom types
- **Cohere** — Hosted NLP API with extraction and classification primitives for custom pipelines

## FAQ

### Why is there no official OpenAPI spec for NamedEntityRecognition?

MessageBird does not publish an OpenAPI specification for the NER API. Jentic generates and maintains this spec so that AI agents and developers can call it via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

### What authentication does the MessageBird NER API use?

An API key in the `Authorization` header, prefixed with the literal word `AccessKey`. Through Jentic the key sits in your Jentic One instance and is injected at request time, so the agent never sees the raw value.

### Which entity types does the model return?

The predict-entities response surfaces standard entity categories (such as person, location, organisation, and date) for the submitted phrase. Inspect a few sample responses to confirm the exact label set for your traffic before relying on a specific type.

### What languages does NER support?

Call GET /api/v1/supported-languages to fetch the live list of supported locales rather than hardcoding it. The set evolves as MessageBird extends coverage.

### How do I extract entities through Jentic?

Search Jentic for `extract entities from a phrase`, load the POST /api/v1/predict-entities operation, and execute it with your text. Jentic returns the entities as structured records the agent can iterate over.

### Are there published rate limits?

The OpenAPI spec does not declare quantitative rate limits. Check your MessageBird account dashboard or contact MessageBird support for the limits attached to your plan before high-volume usage.

### Can I limit what my agent is allowed to do with the MessageBird NER API?

Yes. Because you run Jentic One yourself, your own rules decide which operations and credentials the agent may use. The MessageBird NER API only exposes two operations, so you can grant your agent POST /api/v1/predict-entities to extract entities from a phrase and GET /api/v1/supported-languages to check locale coverage, while leaving out anything else. Since the API takes text in the request body rather than as a URL path resource, scoping the agent to just these two operations is enough to bound exactly what it can call.
