Skip to content
Navigation

Rewrite a description with AI

POST
https://api.nicer.travel/agent/rephrase

Rewrites the text sent (16,000 characters at most), such as an itinerary segment's description, to read more engaging and professional, with one model call and a fixed instruction, and answers only the rewritten text. Nothing is stored. Any signed-in person may call it.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Request body JSON required

  • text
    string
    required
    maxLength: 16000 · minLength: 1

Returns

200

OK

JSON
  • response
    string
    required

    The rewritten text, and nothing else.

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close