MeToken
The calling token itself: remove it to revoke it.
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
DELETE |
/me/token |
remove |
The token no longer works |
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:
removed, err := client.MeToken(nil).Remove(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local removed, err = client:MeToken():remove()
PHP
Construct client as shown in the PHP setup, then call the operations:
$client->MeToken()->remove();
Python
Construct client as shown in the Python setup, then call the operations:
client.MeToken().remove()
Ruby
Construct client as shown in the Ruby setup, then call the operations:
client.MeToken.remove()
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
await client.MeToken().remove()
Fields
| Field | Type | Required | Description |
|---|
remove
DELETE /me/token
Operation ID: revokeOwnToken.
Authentication: bearer token (token) or oauth2 (oauth).
Responses
204: The token no longer works
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 |