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

# Get Account

> Returns the account the api-key belongs to, its plan and the minutes it has left.

Returns the account your API key belongs to, its plan and the minutes it has left. Useful to check a key works and to see the balance before submitting a video.

## Examples

```bash cURL theme={null}
curl "https://api.transcribetube.com/api/me" \
  -H "api-key: $TRANSCRIBETUBE_API_KEY"
```

```js Node (fetch) theme={null}
const res = await fetch("https://api.transcribetube.com/api/me", {
  headers: { "api-key": process.env.TRANSCRIBETUBE_API_KEY },
});
const account = await res.json();
```

## Response

`200 OK`:

```json theme={null}
{
  "id": "0b6f7c1e-3a52-4d0e-9a41-5c2d8e7f1a90",
  "email": "you@example.com",
  "currentPlan": "Free",
  "availableCredit": 42,
  "totalCredit": 60
}
```

| Field | Type | Description |
| - | - | - |
| `id` | string (UUID) | The user the API key belongs to. |
| `email` | string or `null` | Account email. `null` if it could not be looked up. |
| `currentPlan` | string | Plan name, e.g. `Free`. |
| `availableCredit` | number | Minutes left. One credit is one minute of video. |
| `totalCredit` | number | Minutes the plan includes per period. |

## Errors

| Status | When |
| - | - |
| 401 | Missing or invalid `api-key` header. |


## OpenAPI

````yaml get /api/me
openapi: 3.0.0
info:
  title: Transcribe Tube
  description: Welcome to the API Panel for Transcribe Tube
  version: 0.0.1
  contact: {}
servers:
  - url: https://api.transcribetube.com
security: []
tags: []
paths:
  /api/me:
    get:
      tags:
        - Api
      description: >-
        Returns the account the api-key belongs to, its plan and the minutes it
        has left.
      operationId: ApiController_getMe
      parameters: []
      responses:
        '200':
          description: The account behind the api-key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountInfo'
        '401':
          description: Missing or invalid api-key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - api-key: []
components:
  schemas:
    AccountInfo:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: User ID the api-key belongs to
        email:
          type: string
          nullable: true
          description: Account email; null if it could not be looked up
          example: you@example.com
        currentPlan:
          type: string
          description: Plan name
          example: Free
        availableCredit:
          type: number
          description: Minutes left
          example: 42
        totalCredit:
          type: number
          description: Minutes the plan includes per period
          example: 60
      required:
        - id
        - email
        - currentPlan
        - availableCredit
        - totalCredit
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.