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

# Key identity and rate limit

GET https://api.siftsy.app/analyst/v1/me

Team id, scopes, key metadata, and the key's current rate-limit
position: `rateLimit.remainingRequests` (this minute),
`remainingDailyRequests`, `remainingBytes`, the global caps, and
`routeClasses` with each class's per-minute / per-day budget.
Check this before a scheduled sync and skip a full refresh when the
day's budget is mostly spent.


Reference: https://api.docs.siftsy.com/api-reference/siftsy-analyst-api/get-me

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.
- `X-Api-Key` header (required) — API Key authentication via header

## Servers

- `https://api.siftsy.app/analyst/v1` (Production, default)
- `http://localhost:3000/analyst/v1` (Local development)

## Response

### 200

Current API key context

- `data` (Me, optional)
- `meta` (EnvelopeMeMeta, optional)

## Errors

### 401 Unauthorized Error

Missing or invalid API key

- `any`

## Types

### Me

- `teamId` (string, optional)
- `scopes` (list of enum, optional) — Read scopes are granted by default. `posts:write` and `accounts:write` are opt-in per key (Team Settings → API) and unlock `POST /content/...`, which spends the team's credits.
  - Allowed values: `posts:read`, `comments:read`, `insights:read`, `analyses:read`, `analyses:run`, `collections:read`, `team:read`, `posts:write`, `accounts:write`
- `key` (MeKey, optional)
- `rateLimit` (MeRateLimit, optional) — Current position against the per-key budgets (see Rate limits).

### EnvelopeMeMeta

### MeKey

- `id` (string, optional)
- `keyId` (string, optional)
- `keyPrefix` (string, optional) — `sk_live_…` / `sk_test_…` prefix shown in Team Settings; never the secret
- `name` (string, optional)

### MeRateLimit

Current position against the per-key budgets (see Rate limits).

- `remainingRequests` (integer, optional) — Global requests left this UTC minute
- `remainingDailyRequests` (integer, optional, nullable) — Global requests left this UTC day
- `remainingBytes` (integer, optional) — Response bytes left this UTC day
- `limitPerMinute` (integer, optional)
- `limitPerDay` (integer, optional, nullable)
- `dailyBytesLimit` (integer, optional)
- `routeClasses` (map from string to MeRateLimitRouteClasses, optional) — Per-class burst / daily caps, keyed by class name (`comments`, `analysis_comments`, `collection_posts`, `analysis_read`, `analysis_create`, `analysis_search`, `content_add_posts`, `content_add_accounts`, `content_refresh`, `content_jobs`).

### MeRateLimitRouteClasses

- `perMinute` (integer, optional)
- `perDay` (integer, optional)

## Examples

**Response**

```json
{
  "data": {
    "teamId": "team_2f8c1a",
    "scopes": [
      "posts:read",
      "comments:read",
      "insights:read",
      "analyses:read",
      "analyses:run",
      "collections:read",
      "team:read"
    ],
    "key": {
      "id": "key_01j9x",
      "keyId": "k_7b3d",
      "keyPrefix": "sk_live_7b3d",
      "name": "Warehouse loader"
    },
    "rateLimit": {
      "remainingRequests": 299,
      "remainingDailyRequests": 9412,
      "remainingBytes": 498073600,
      "limitPerMinute": 300,
      "limitPerDay": 10000,
      "dailyBytesLimit": 524288000,
      "routeClasses": {
        "comments": {
          "perMinute": 120,
          "perDay": 1000
        },
        "analysis_comments": {
          "perMinute": 20,
          "perDay": 300
        },
        "collection_posts": {
          "perMinute": 60,
          "perDay": 1000
        },
        "analysis_read": {
          "perMinute": 60,
          "perDay": 2000
        },
        "analysis_create": {
          "perMinute": 10,
          "perDay": 100
        },
        "analysis_search": {
          "perMinute": 2,
          "perDay": 10
        }
      }
    }
  },
  "meta": {}
}
```

**SDK Code**

```python account_getMe_example
import requests

url = "https://api.siftsy.app/analyst/v1/me"

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

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

print(response.json())
```

```javascript account_getMe_example
const url = 'https://api.siftsy.app/analyst/v1/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 account_getMe_example
package main

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

func main() {

	url := "https://api.siftsy.app/analyst/v1/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 account_getMe_example
require 'uri'
require 'net/http'

url = URI("https://api.siftsy.app/analyst/v1/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 account_getMe_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.siftsy.app/analyst/v1/me")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php account_getMe_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.siftsy.app/analyst/v1/me', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp account_getMe_example
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/me");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift account_getMe_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.siftsy.app/analyst/v1/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()
```