Get the current authenticated-user context
curl --request GET \
--url https://api.portfobit.com/api/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.portfobit.com/api/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.portfobit.com/api/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(string(body))
}HttpResponse<String> response = Unirest.get("https://api.portfobit.com/api/v1/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/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{
"data": {
"user": {
"id": "usr_01J2K7M9N3",
"username": "u4q2m7x9c5k8d1p6z",
"display_name": "Alice",
"avatar_url": null,
"onboarding_status": "configured_mcp"
},
"subscription": {
"current": {
"plan": "Free",
"status": "active",
"features": [],
"limits": {
"connected_accounts": {
"used": 1,
"limit": 3,
"available": 1,
"plan_limited": 0,
"can_create": true
},
"custom_portfolios": {
"used": 1,
"limit": 3,
"available": 1,
"plan_limited": 0,
"can_create": true
}
}
},
"latest_paid_entitlement": {
"plan": "Plus",
"status": "expired",
"expires_at": "2026-09-07T00:00:00Z"
},
"rewards": [
{
"program": "marketing",
"plan": "Plus",
"awarded_months": 1
}
]
},
"authorization": {
"credential_type": "open_api_key",
"scopes": [
"account:read",
"account:write",
"portfolio:read",
"portfolio:write",
"order:read",
"trade:read",
"ledger:read",
"funding:read",
"marketdata:read"
]
},
"api_key": {
"scopes": [
"account:read",
"account:write",
"portfolio:read",
"portfolio:write",
"order:read",
"trade:read",
"ledger:read",
"funding:read",
"marketdata:read"
]
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:00:01Z"
}
}{
"error": {
"code": "authentication_required",
"message": "A valid Portfobit Open API key is required.",
"details": null
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-09-13T08:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}Context
Get the current authenticated-user context
Returns the current user, effective subscription projection, resource limits, credential type, and authorization scopes. Any valid Open API key can call this public endpoint. MCP OAuth may reach the same internal contract only through private, server-bound delegation; an MCP OAuth access token sent directly to this endpoint is rejected with 401 authentication_required.
GET
/
me
Get the current authenticated-user context
curl --request GET \
--url https://api.portfobit.com/api/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portfobit.com/api/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portfobit.com/api/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.portfobit.com/api/v1/me",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.portfobit.com/api/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(string(body))
}HttpResponse<String> response = Unirest.get("https://api.portfobit.com/api/v1/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portfobit.com/api/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{
"data": {
"user": {
"id": "usr_01J2K7M9N3",
"username": "u4q2m7x9c5k8d1p6z",
"display_name": "Alice",
"avatar_url": null,
"onboarding_status": "configured_mcp"
},
"subscription": {
"current": {
"plan": "Free",
"status": "active",
"features": [],
"limits": {
"connected_accounts": {
"used": 1,
"limit": 3,
"available": 1,
"plan_limited": 0,
"can_create": true
},
"custom_portfolios": {
"used": 1,
"limit": 3,
"available": 1,
"plan_limited": 0,
"can_create": true
}
}
},
"latest_paid_entitlement": {
"plan": "Plus",
"status": "expired",
"expires_at": "2026-09-07T00:00:00Z"
},
"rewards": [
{
"program": "marketing",
"plan": "Plus",
"awarded_months": 1
}
]
},
"authorization": {
"credential_type": "open_api_key",
"scopes": [
"account:read",
"account:write",
"portfolio:read",
"portfolio:write",
"order:read",
"trade:read",
"ledger:read",
"funding:read",
"marketdata:read"
]
},
"api_key": {
"scopes": [
"account:read",
"account:write",
"portfolio:read",
"portfolio:write",
"order:read",
"trade:read",
"ledger:read",
"funding:read",
"marketdata:read"
]
}
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-08-07T08:00:01Z"
}
}{
"error": {
"code": "authentication_required",
"message": "A valid Portfobit Open API key is required.",
"details": null
},
"meta": {
"request_id": "req_01J2K8B7QW",
"generated_at": "2026-09-13T08:00:00Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
},
"meta": {
"request_id": "<string>",
"generated_at": "2023-11-07T05:31:56Z"
}
}