Me
The member or agent the calling token signs in as, and its workspace.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/me |
load |
The signed-in member or agent |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
me, err := client.Me(nil).Load(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(me)
Lua
Construct client as shown in the Lua setup, then call the operations:
local me, err = client:Me():load()
PHP
Construct client as shown in the PHP setup, then call the operations:
$me = $client->Me()->load();
Python
Construct client as shown in the Python setup, then call the operations:
me = client.Me().load()
Ruby
Construct client as shown in the Ruby setup, then call the operations:
me = client.Me.load()
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const me = await client.Me().load()
Fields
| Field | Type | Required | Description |
|---|
load
GET /me
Operation ID: readMe.
Authentication: bearer token (token) or oauth2 (oauth).
Responses
200: The signed-in member or agent
application/json
The response is object or object.
4XX: The request failed; the error says why
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
object |
Yes | |
error.code |
enum: invalid_input, unauthorized, forbidden, plan_limit, not_found, conflict, ... |
Yes | |
error.message |
string |
Yes |
5XX: The request failed; the error says why
application/json
| Property | Type | Required | Description |
|---|---|---|---|
error |
object |
Yes | |
error.code |
enum: invalid_input, unauthorized, forbidden, plan_limit, not_found, conflict, ... |
Yes | |
error.message |
string |
Yes |