cURL
curl --request GET \
--url https://api.nohead.io/v1/me \
--header 'Authorization: Bearer <token>'import { Nohead } from "@nohead/sdk"
const nohead = new Nohead()
const result = await nohead.me.get()
from nohead import Nohead
nohead = Nohead()
result = nohead.me.get()
require "nohead"
nohead = Nohead::Client.new
result = nohead.me.get
{
"object": "principal",
"type": "user",
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"staff": true
},
"api_key": {
"id": "<string>",
"name": "<string>",
"scopes": [
"records:read"
],
"published_only": false,
"project_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"request_id": "req_01J9ZQ3F8X5W2K7M4N6P0R1S2T",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"usage": 123,
"limit": 123,
"current_revision": 123,
"record_id": "<string>",
"draft_id": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"request_id": "req_01J9ZQ3F8X5W2K7M4N6P0R1S2T",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"usage": 123,
"limit": 123,
"current_revision": 123,
"record_id": "<string>",
"draft_id": "<string>"
}
]
}
}System
Get the authenticated principal
The user or API key making the request. API key clients use it to discover their project and scopes.
GET
/
v1
/
me
cURL
curl --request GET \
--url https://api.nohead.io/v1/me \
--header 'Authorization: Bearer <token>'import { Nohead } from "@nohead/sdk"
const nohead = new Nohead()
const result = await nohead.me.get()
from nohead import Nohead
nohead = Nohead()
result = nohead.me.get()
require "nohead"
nohead = Nohead::Client.new
result = nohead.me.get
{
"object": "principal",
"type": "user",
"user": {
"id": "<string>",
"email": "<string>",
"name": "<string>",
"staff": true
},
"api_key": {
"id": "<string>",
"name": "<string>",
"scopes": [
"records:read"
],
"published_only": false,
"project_id": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"request_id": "req_01J9ZQ3F8X5W2K7M4N6P0R1S2T",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"usage": 123,
"limit": 123,
"current_revision": 123,
"record_id": "<string>",
"draft_id": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"request_id": "req_01J9ZQ3F8X5W2K7M4N6P0R1S2T",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>",
"usage": 123,
"limit": 123,
"current_revision": 123,
"record_id": "<string>",
"draft_id": "<string>"
}
]
}
}Authorizations
Project-scoped API key, e.g. nohead_sk_k7fz0a9c3m2q_<secret>, or
nohead_pk_… for a published-only key. Used by servers, CI, the CLI
and coding agents.