The calling token's own entry (a named token; 400 for the owner).
POST
/datanotes/tokens/me/
const url = 'https://example.com/datanotes/tokens/me/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/datanotes/tokens/me/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”Done.
Media typeapplication/json
object
entry
One of:
A named token as the registry shows it (never its value).
object
name
required
string
description
string
write
required
Array<string>
ddl
required
boolean
maintain
boolean
autolink
The default of its writes for automatic links (absent: the database’s setting).
boolean
created_at
required
string
updated_at
required
string
last_seen
The last request made with it (saved within a minute).
string
null
Example generated
{ "entry": { "name": "example", "description": "example", "write": [ "example" ], "ddl": true, "maintain": true, "autolink": true, "created_at": "example", "updated_at": "example", "last_seen": "example" }}Bad input: the body is not a JSON object, or an argument is unknown, missing or of the wrong type.
Media typeapplication/json
object
error
required
What went wrong, for a person or an agent.
string
Example generated
{ "error": "example"}Missing or wrong bearer token.
Media typeapplication/json
object
error
required
What went wrong, for a person or an agent.
string
Example generated
{ "error": "example"}Unexpected error.
Media typeapplication/json
object
error
required
What went wrong, for a person or an agent.
string
Example generated
{ "error": "example"}