Tokens

Create a bearer token

Mints a token for agents, scripts or the MCP connector. The plaintext is returned once. Re-minting with the same label replaces that token; different labels coexist. Optional body, omit it for a full-access token labelled with your username.

post/api/vega/token

Request

  • Base URL: https://getmyluna.app
  • URL: https://getmyluna.app/api/vega/token
  • Auth: one of:
    • HTTP bearer
    • API key in cookie luna_session

Request body

labelstring nullable

Re-minting the same label replaces that token. Defaults to your username.

scopesstring[] nullable

Default: both.

Example request

{
  "label": "Muse",
  "scopes": [
    "read",
    "write"
  ]
}

Response

Success

tokenstring required

Shown once; store it securely.

luna_urlstring required
mcp_urlstring required
labelstring required
scopesstring[] required

Example response

{
  "mcp_url": "https://getmyluna.app/mcp"
}

Changes

No recorded changes to this operation across all 1 revision of this API.