A token for the executor the dial named: it reads the session and the mail addressed to it, and lands nothing itself. What it performs it claims first, and completes under the grant the claim hands back.
GET
/sessions/{id}/executor/token
const url = 'https://api.canopyhq.dev/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/executor/token';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.canopyhq.dev/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/executor/token \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
A stream id: 72 hex chars, the shard then the owner digest.
string
The session whose executor to mint for.
Responses
Section titled “Responses”A token for the session’s executor.
Media typeapplication/json
object
expires
required
integer format: int64
session
required
A stream id: 72 hex chars, the shard then the owner digest.
string
token
required
string
Example
{ "session": "000000000000000000000000000000000000000000000000000000000000000000000000"}No install key, or one no install answers.
No such session under this caller.
The dial named no executor.