# TextCortex Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
AI writing assistant platform for generating and improving written content
**Categories:**
- {'id': 'content-generation', 'name': 'Content Generation AI'}
## Base Endpoint
https://api.lowcodeapi.com/textcortex
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://docs.textcortex.com/api
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### Generate code
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/codes
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/codes?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/codes?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| max_tokens | number | |
| mode | string | |
| model | string | |
| n | number | |
| temperature | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/codes?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/codes/post
### Generate SQL queries
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/codes/queries
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/codes/queries?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/codes/queries?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| context | object | |
| max_tokens | number | |
| model | string | |
| n | number | |
| temperature | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/codes/queries?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/codes-queries/post
### Create ad
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/ads
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/ads?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/ads?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| description | string | |
| formality | string | |
| keywords | array | |
| max_tokens | number | |
| mode | string | |
| model | string | |
| n | number | |
| name | string | |
| promotion | string | |
| source_lang | string | |
| target_lang | string | |
| temperature | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/ads?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-ads/post
### Create blog content
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/blogs
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/blogs?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/blogs?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| context | string | |
| formality | string | |
| keywords | array | |
| max_tokens | number | |
| model | string | |
| n | number | |
| source_lang | string | |
| target_lang | string | |
| temperature | number | |
| title | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/blogs?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-blogs/post
### Autocomplete
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/completions
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/completions?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/completions?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| formality | string | |
| max_tokens | number | |
| model | string | |
| n | number | |
| source_lang | string | |
| target_lang | string | |
| temperature | number | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/completions?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-completions/post
### Create email
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/emails
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/emails?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/emails?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| company_details | string | |
| context | string | |
| formality | string | |
| from | string | |
| instructions | string | |
| max_tokens | number | |
| mode | string | |
| model | string | |
| n | number | |
| purpose | string | |
| received_email | string | |
| source_lang | string | |
| target_lang | string | |
| temperature | number | |
| to | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/emails?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-emails/post
### Expand
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/expansions
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/expansions?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/expansions?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| formality | string | |
| max_tokens | number | |
| model | string | |
| n | number | |
| source_lang | string | |
| target_lang | string | |
| temperature | number|null | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/expansions?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-expansions/post
### Paraphrase
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/paraphrases
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/paraphrases?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/paraphrases?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| text | string | |
| file_id | string | |
| formality | string | |
| max_tokens | number | |
| mode | string | |
| model | string | |
| n | number | |
| source_lang | string | |
| target_lang | string | |
| temperature | number|null | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/paraphrases?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-paraphrases/post
### Create product description
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/products/descriptions
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/products/descriptions?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/products/descriptions?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| category | string | |
| brand | string | |
| description | string | |
| formality | string | |
| keywords | array | |
| max_tokens | number | |
| model | string | |
| n | number | |
| name | string | |
| source_lang | string | |
| target_lang | string | |
| temperature | number|null | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/products/descriptions?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-products-descriptions/post
### Create product title
**Method:** POST
**LowCodeAPI Path:** {endpoint}/v1/texts/products/titles
**New Format URL:**
https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/products/titles?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/textcortex/v1/texts/products/titles?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| category | string | |
| brand | string | |
| description | string | |
| formality | string | |
| keywords | array | |
| max_tokens | number | |
| model | string | |
| n | number | |
| name | string | |
| source_lang | string | |
| target_lang | string | |
| temperature | number|null | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/textcortex{endpoint}/v1/texts/products/titles?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://docs.textcortex.com/api/paths/texts-products-titles/post
## Usage Examples
### Example 1: Basic Chat Completion
Creating a simple text completion or chat message:
```bash
# Create a chat completion - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/textcortex/v1/chat/completions?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-name",
"messages": [
{"role": "user", "content": "Hello, how can you help me?"}
]
}'
# Response includes generated content
```
### Example 2: Text Generation with Path Parameters
Generating text with specific model settings:
```bash
# Generate content using a specific model
curl -X POST "https://api.lowcodeapi.com/textcortex/v1/models/generate?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Write a short poem about technology",
"max_tokens": 100
}'
# Or if the provider uses model in the path:
curl -X POST "https://api.lowcodeapi.com/textcortex/v1/models/{MODEL_ID}:generateContent?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Write a short story"}]}]
}'
```
### Example 3: List Available Models
```bash
# Get list of available models
curl -X GET "https://api.lowcodeapi.com/textcortex/v1/models?api_token=YOUR_API_TOKEN"
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| Generate code | POST | TextCortex API |
| Generate SQL queries | POST | TextCortex API |
| Create ad | POST | TextCortex API |
| Create blog content | POST | TextCortex API |
| Autocomplete | POST | TextCortex API |
| Create email | POST | TextCortex API |
| Expand | POST | TextCortex API |
| Paraphrase | POST | TextCortex API |
| Create product description | POST | TextCortex API |
| Create product title | POST | TextCortex API |
| Rewrite | POST | TextCortex API |
| Simplify | POST | TextCortex API |
| Create social media post | POST | TextCortex API |
| Summarize | POST | TextCortex API |
| Translate | POST | TextCortex API |
| Create video description | POST | TextCortex API |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/textcortex/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/textcortex/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```