---
title: Define Text
slug: define-text
docTags: 
createdAt: 2021-07-26T08:55:33.000Z
---

Defines the text with information like length and number of words



### API Definition

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "https://orca.pathfix.com/functions/text/define",
  "name": "Define API",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "H8j8AUnVCJxSlrjbbqb3b",
        "code": "{\n\t\"output\": {\n\t\t\"length\": 7,\n\t\t\"words\": 3\n\t}\n}",
        "language": "200"
      },
      {
        "id": "6E98Fa1JHkpNYDKlUPhL6",
        "code": "{\n    \"message\": \"error\"\n}",
        "language": "404"
      }
    ],
    "selectedLanguageId": "H8j8AUnVCJxSlrjbbqb3b"
  },
  "examples": {
    "languages": [
      {
        "id": "e_fIQ-89osidZEvB22I06",
        "code": "{\r\n\t\"input\": \"lorem ipsum dolor\"\r\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "e_fIQ-89osidZEvB22I06"
  },
  "description": "Call the following API helps define any text",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  }
}
```
:::




### Remarks

Sometimes you may want to run additional processing for a response e.g. get a word count for a response, the Define API allows you to do just that.









