v1

latestOpenAPI 3.0.32026-07-265278189.1 KB

Retrieve style rule lists

get/v3/style_rules

Query parameters

pageinteger

The index of the first page to return. Use with page_size to get the next page of rule lists

page_sizeinteger

The maximum number of style rule lists to return.

detailedboolean

Determines if the rule list's configured_rules and custom_instructions should be included in the response body.

Response

JSON object containing the style rule lists.

Example response

{
  "style_rules": [
    {
      "style_id": "bd0a38f3-1831-440b-a8dd-2c702e2325ab",
      "version": 13,
      "configured_rules": {
        "style_and_tone": {
          "abbreviations": "use_abbreviations_and_symbols",
          "short_vs_long_words": "use_short_words"
        },
        "punctuation": {
          "apostrophe": "use_curly_apostrophes"
        }
      },
      "custom_instructions": [
        {
          "id": "68fdb803-c013-4e67-b62e-1aad0ab519cd",
          "label": "Currency custom instruction",
          "prompt": "Have currency symbols before the numerical value (e.g. $100, €100)",
          "source_language": "en"
        }
      ]
    }
  ]
}