---
agentTools:
  projectIndex: https://docs.storyly.io/llms.txt
---

# Get stories

Get stories in a story group.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Storyly External API",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.storyly.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JWT token for API authentication"
      }
    }
  },
  "paths": {
    "/external/story": {
      "get": {
        "tags": [
          "story"
        ],
        "summary": "Get stories",
        "description": "Get stories in a story group.",
        "operationId": "getStories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "story_group_id",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "204206"
            },
            "description": "required=True, min_value=1"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "1"
            },
            "description": "required=False, min_value=1, max_value=100"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "0"
            },
            "description": "required=False, min_value=0"
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "account_id": {
                            "type": "number",
                            "example": 9434
                          },
                          "button_text": {
                            "type": "string",
                            "example": ""
                          },
                          "deep_link": {
                            "type": "string",
                            "example": "jushpl://storyly?g=204206&s=2581651&instance=22896"
                          },
                          "id": {
                            "type": "number",
                            "example": 2581651
                          },
                          "media": {
                            "type": "string",
                            "example": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3879931866.jpeg"
                          },
                          "media_raw": {
                            "type": "string",
                            "example": "https://db62cod6cnasq.cloudfront.net/user-media/9434/087d26b8-4f90-4707-9fa2-764f289d7717--f99ac6d1f6614ba398ced3cb5a83f329.png"
                          },
                          "mime_type": {
                            "type": "string",
                            "example": "image/jpeg"
                          },
                          "name": {
                            "nullable": true,
                            "example": null
                          },
                          "outlink": {
                            "type": "string",
                            "example": ""
                          },
                          "settings": {
                            "nullable": true,
                            "example": null
                          },
                          "sort_order": {
                            "type": "number",
                            "example": 0
                          },
                          "status": {
                            "type": "number",
                            "example": 1
                          },
                          "story_group_id": {
                            "type": "number",
                            "example": 204206
                          },
                          "studio_image": {
                            "type": "string",
                            "example": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3927707939.jpeg"
                          },
                          "target_cap": {
                            "nullable": true,
                            "example": null
                          },
                          "thumbnail": {
                            "nullable": true,
                            "example": null
                          },
                          "title": {
                            "type": "string",
                            "example": "TEST 4"
                          },
                          "ts_created": {
                            "type": "string",
                            "example": "2025-03-04 17:48:15"
                          },
                          "ts_end": {
                            "nullable": true,
                            "example": null
                          },
                          "ts_start": {
                            "type": "string",
                            "example": "2025-03-04 17:47:47"
                          },
                          "ts_updated": {
                            "type": "string",
                            "example": "2025-03-04 17:49:41"
                          },
                          "type": {
                            "type": "number",
                            "example": 1
                          }
                        }
                      },
                      "example": [
                        {
                          "account_id": 9434,
                          "button_text": "",
                          "deep_link": "jushpl://storyly?g=204206&s=2581651&instance=22896",
                          "id": 2581651,
                          "media": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3879931866.jpeg",
                          "media_raw": "https://db62cod6cnasq.cloudfront.net/user-media/9434/087d26b8-4f90-4707-9fa2-764f289d7717--f99ac6d1f6614ba398ced3cb5a83f329.png",
                          "mime_type": "image/jpeg",
                          "name": null,
                          "outlink": "",
                          "settings": null,
                          "sort_order": 0,
                          "status": 1,
                          "story_group_id": 204206,
                          "studio_image": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3927707939.jpeg",
                          "target_cap": null,
                          "thumbnail": null,
                          "title": "TEST 4",
                          "ts_created": "2025-03-04 17:48:15",
                          "ts_end": null,
                          "ts_start": "2025-03-04 17:47:47",
                          "ts_updated": "2025-03-04 17:49:41",
                          "type": 1
                        }
                      ]
                    },
                    "message": {
                      "type": "string",
                      "example": "Stories successfully listed"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    }
                  }
                },
                "examples": {
                  "200": {
                    "value": {
                      "data": [
                        {
                          "account_id": 9434,
                          "button_text": "",
                          "deep_link": "jushpl://storyly?g=204206&s=2581651&instance=22896",
                          "id": 2581651,
                          "media": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3879931866.jpeg",
                          "media_raw": "https://db62cod6cnasq.cloudfront.net/user-media/9434/087d26b8-4f90-4707-9fa2-764f289d7717--f99ac6d1f6614ba398ced3cb5a83f329.png",
                          "mime_type": "image/jpeg",
                          "name": null,
                          "outlink": "",
                          "settings": null,
                          "sort_order": 0,
                          "status": 1,
                          "story_group_id": 204206,
                          "studio_image": "https://db62cod6cnasq.cloudfront.net/user-media/9434/s2581651/3927707939.jpeg",
                          "target_cap": null,
                          "thumbnail": null,
                          "title": "TEST 4",
                          "ts_created": "2025-03-04 17:48:15",
                          "ts_end": null,
                          "ts_start": "2025-03-04 17:47:47",
                          "ts_updated": "2025-03-04 17:49:41",
                          "type": 1
                        }
                      ],
                      "message": "Stories successfully listed",
                      "status": "ok"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "story",
      "description": "Story management endpoints"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 249,
      "2": 255,
      "3": 26,
      "4": 178,
      "5": 168,
      "6": 65,
      "7": 240,
      "8": 58,
      "9": 114,
      "10": 176,
      "11": 107
    }
  }
}
```