> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.movieknight.site/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.movieknight.site/_mcp/server.

# Get current user (me)

GET {{baseUrl}}/api/auth/me

**What:** Return the signed-in user's profile.

**Auth:** Bearer token required.

**Params:** None.

**Returns:** `data = { user }`.

Reference: https://apidocs.movieknight.site/movie-knight-api/auth/get-current-user-me

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/auth/me:
    get:
      operationId: get-current-user-me
      summary: Get current user (me)
      description: |-
        **What:** Return the signed-in user's profile.

        **Auth:** Bearer token required.

        **Params:** None.

        **Returns:** `data = { user }`.
      tags:
        - subpackage_auth
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Auth_Get current user (me)_Response_200'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiAuthMeRequestUnauthorizedError'
servers:
  - url: '{{baseUrl}}'
    description: '{{baseUrl}}'
components:
  schemas:
    ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUserAiUsage:
      type: object
      properties:
        used:
          type: integer
        limit:
          type: integer
        remaining:
          type: integer
      required:
        - used
        - limit
        - remaining
      title: ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUserAiUsage
    ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUser:
      type: object
      properties:
        id:
          type: string
        bio:
          type: string
        name:
          type: string
        email:
          type: string
          format: email
        badges:
          type: array
          items:
            description: Any type
        aiUsage:
          $ref: >-
            #/components/schemas/ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUserAiUsage
        username:
          type: string
        avatarUrl:
          description: Any type
        createdAt:
          type: string
          format: date-time
        countryCode:
          description: Any type
        dateOfBirth:
          type: string
          format: date-time
      required:
        - id
        - bio
        - name
        - email
        - badges
        - aiUsage
        - username
        - createdAt
        - dateOfBirth
      title: ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUser
    ApiAuthMeGetResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        user:
          $ref: >-
            #/components/schemas/ApiAuthMeGetResponsesContentApplicationJsonSchemaDataUser
      required:
        - user
      title: ApiAuthMeGetResponsesContentApplicationJsonSchemaData
    Auth_Get current user (me)_Response_200:
      type: object
      properties:
        ok:
          type: boolean
        data:
          $ref: >-
            #/components/schemas/ApiAuthMeGetResponsesContentApplicationJsonSchemaData
      required:
        - ok
        - data
      title: Auth_Get current user (me)_Response_200
    GetApiAuthMeRequestUnauthorizedError:
      type: object
      properties:
        ok:
          type: boolean
        error:
          type: string
      required:
        - ok
        - error
      title: GetApiAuthMeRequestUnauthorizedError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples



**Response**

```json
{
  "ok": true,
  "data": {
    "user": {
      "id": "66a1f2c4e5b3a1234567890a",
      "bio": "",
      "name": "Movie Fan",
      "email": "moviefan@example.com",
      "badges": [],
      "aiUsage": {
        "used": 0,
        "limit": 5,
        "remaining": 5
      },
      "username": "moviefan",
      "createdAt": "2026-06-25T10:30:00.000Z",
      "dateOfBirth": "1999-05-20T00:00:00.000Z"
    }
  }
}
```

**SDK Code**

```python Auth_Get current user (me)_example
import requests

url = "https://{{baseurl}}/api/auth/me"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Auth_Get current user (me)_example
const url = 'https://{{baseurl}}/api/auth/me';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Auth_Get current user (me)_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://{{baseurl}}/api/auth/me"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Auth_Get current user (me)_example
require 'uri'
require 'net/http'

url = URI("https://{{baseurl}}/api/auth/me")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Auth_Get current user (me)_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://{{baseurl}}/api/auth/me")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Auth_Get current user (me)_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://{{baseurl}}/api/auth/me', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Auth_Get current user (me)_example
using RestSharp;

var client = new RestClient("https://{{baseurl}}/api/auth/me");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Auth_Get current user (me)_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://{{baseurl}}/api/auth/me")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```