logo
Feature Endpoint
Rephrase your content
POST

/custom/api/content/rephrase

Headers

Authorizationrequired
string

Input the Authorization Bearer Token to authorize your API request.

Body

textrequired
string

This field is to input the text you want to rephrase.

Example: “Tesla has launched its coolest car yet. Equipped with the latest tech, it's becoming a symbol of style among Millennials and Gen X alike. And it's quite easy on the environment.”

Response

status
string

Indicates whether the call was successful. It prompts success if working, otherwise not.

copies
object

The generated content.

text
string

This is the input text you passed, to rephrase.

message
string

This information is attached to the call and offers meaningful details when errors occur.

credits_used
number

This field informs you about the credits consumed for this particular request. It varies on the generated content.

curl --location --request POST 'https://api-az.longshot.ai/custom/api/content/rephrase'             
--header 'Content-Type: application/json'             
--header 'Authorization: Bearer <token>'             
--data-raw '{
  "text": ""      
}'                 
{
  "copies": [
    {
      "content": "<Rephrased Content>"
    }
  ],
  "text": "<Input Text>",
  "status": "success",
  "message": "copies generated successfully"
}