> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videnly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve All Videos

> Get all successful video generation logs with video URLs for the authenticated user

<Note type="warning">**Note:** This operation does not consume any account credits, but rate limits apply.</Note>

## Retrieve All Videos

This endpoint retrieves all successful video generation logs with video URLs for the authenticated user.

### Request

* **Endpoint**: `GET /v1/videos`
* **Authorization**: Bearer token required

### Response

A successful response will return an array of video logs.

#### Example Response

```json theme={null}
{
   "status": "success",
   "message": "Videos retrieved successfully",
   "videos": [
      {
         "id": "xxxxxxxxxxxxxxxxxxxxxxxx",
         "videoUrl": "https://cdn.videnly.com/videos/sample-video.mp4",
         "projectId": "project123",
         "createdAt": "2024-11-07T14:23:45.213Z"
      },
      {
         "id": "xxxxxxxxxxxxxxxxxxxxxxxx",
         "videoUrl": "https://cdn.videnly.com/videos/another-video.mp4",
         "projectId": "project456",
         "createdAt": "2024-11-08T10:45:30.213Z"
      }
   ]
}
```

If there are no videos for the user, the response will be:

```json theme={null}
{
   "status": "success",
   "message": "No videos found for this user",
   "videos": []
}
```


## OpenAPI

````yaml GET /v1/videos
openapi: 3.0.0
info:
  title: Videnly API
  version: 1.0.0
  description: API for managing video generation, queue, and user account details.
servers: []
security: []
paths:
  /v1/videos:
    get:
      tags:
        - Videos
      summary: Retrieve All Videos
      description: >-
        Get all successful video generation logs with video URLs for the
        authenticated user
      responses:
        '200':
          description: Videos retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  message:
                    type: string
                    example: Videos retrieved successfully
                  videos:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Unique ID for the log entry
                          example: xxxxxxxxxxxxxxxxxxxxxxxx
                        url:
                          type: string
                          description: URL of the generated video
                          example: https://cdn.videnly.com/videos/sample-video.mp4
                        projectId:
                          type: string
                          description: ID of the associated project
                          example: project123
                        createdAt:
                          type: string
                          format: date-time
                          description: Timestamp of the log creation
                          example: '2024-11-07T14:23:45.213Z'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: error
                  message:
                    type: string
                    example: Failed to retrieve video logs
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Use format `Bearer YOUR_API_KEY`.

````