curl --request GET \
--url https://api.1club.ai/v1/platform/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/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{
"organization": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"currency": "<string>",
"language": "en"
},
"organizations": [
{
"id": 123,
"name": "<string>",
"access": "staff",
"unavailable": "ORGANIZATION_NOT_ACTIVE"
}
],
"scopes": [
"<string>"
],
"fullAccess": true,
"effectiveScopes": [
"<string>"
],
"resources": [
{
"resource": "<string>",
"label": "<string>",
"actions": [
"<string>"
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Describe the API key's organization and granted scopes
Returns the organization the API key belongs to, the scopes granted to the key, and the catalog of resources/actions the platform API exposes. Requires a valid API key but no specific scope - use it to verify a key and discover what it can access.
organizations lists every organization the credential may act in: an API key’s own, or - for an MCP connection, which acts as its user - every organization that user is staff of. A connection reaching several names the one each request acts in with the X-1Club-Organization-Id header, and may do there what its user’s permissions allow; called without it, this endpoint answers with organization: null, marks each organization a call could not act in with unavailable (ORGANIZATION_NOT_ACTIVE or PLAN_FEATURE_LOCKED), and every other endpoint refuses with ORGANIZATION_REQUIRED. search narrows the list by name; for 1club staff it also finds organizations they are not a member of, marked access: staff.
A full-access key holds the single wildcard scope *. Test a capability against effectiveScopes, which expands the wildcard, rather than against scopes, which reports the grant verbatim.
curl --request GET \
--url https://api.1club.ai/v1/platform/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/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.1club.ai/v1/platform/me")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/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{
"organization": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"currency": "<string>",
"language": "en"
},
"organizations": [
{
"id": 123,
"name": "<string>",
"access": "staff",
"unavailable": "ORGANIZATION_NOT_ACTIVE"
}
],
"scopes": [
"<string>"
],
"fullAccess": true,
"effectiveScopes": [
"<string>"
],
"resources": [
{
"resource": "<string>",
"label": "<string>",
"actions": [
"<string>"
]
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
API key identity and granted scopes
Describes the authorized organization, the scopes granted to the bearer credential, and the catalog of available platform resources.
Scopes granted to the bearer credential - an API key or an MCP OAuth grant - exactly as held (e.g. "classes:read"). A full-access key holds the single wildcard scope ""; read effectiveScopes to see what that resolves to. An MCP grant never holds "": the wildcard is expanded at consent so each capability can be shown and approved.
Was this page helpful?