Bird · Example Payload

Bird Detect Language Example

Example of a POST request to /api/v1/predict-language to detect the language of an incoming phrase.

CommunicationsSMSEmailWhatsAppVoiceMessagingOmnichannelCustomer Engagement

Bird Detect Language Example is an example object payload from Bird, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summarydescriptionrequestresponse

Example Payload

Raw ↑
{
  "summary": "Detect the language of a phrase using Bird Language Detection API",
  "description": "Example of a POST request to /api/v1/predict-language to detect the language of an incoming phrase.",
  "request": {
    "method": "POST",
    "url": "https://language-detection.messagebird.com/api/v1/predict-language",
    "headers": {
      "Authorization": "AccessKey YOUR_ACCESS_KEY",
      "Content-Type": "application/json"
    },
    "body": {
      "phrase": "Dit is iets in het Nederlands"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "language": {
        "iso6393Code": "nld",
        "languageCode": "NLD",
        "name": "Dutch"
      }
    }
  }
}