toolbar
GET
https://lucidace.com /v1/projects/{project_id}/toolbar/launch Bookmarklet / "Launch" target: mints a launch token for the page's origin and redirects to the page with `?__lc_toolbar=<token>`.
Parameters
project_idstringpathrequiredurlstringqueryrequiredabsolute page URL on an allowed origin
Code samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/toolbar/launch?url=<url>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
303 redirect to the page with the launch token
400
403
404
GET
https://lucidace.com /v1/projects/{project_id}/toolbar/origins Scope *:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/toolbar/origins"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"origins": [
"string"
]
}Schema
originsstring[]requiredscheme://host[:port] each, at most 50.404
PUT
https://lucidace.com /v1/projects/{project_id}/toolbar/origins Scope adminReplace the allowed origins; admins only (an origin here gets CORS and token exchange).
Parameters
project_idstringpathrequiredRequest body
application/json
The origins the toolbar may run on.
originsstring[]requiredscheme://host[:port] each, at most 50.{
"origins": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/toolbar/origins" \
-H "Content-Type: application/json" \
-d '{"origins":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/toolbar/session Scope *:readParameters
project_idstringpathrequiredRequest body
application/json
originstringrequiredOrigin the toolbar will run on; must be in the project's
toolbar_origins.{
"origin": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/toolbar/session" \
-H "Content-Type: application/json" \
-d '{"origin":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"expires_at": "2024-01-01T00:00:00Z",
"scopes": [
"string"
],
"token": "string"
}Schema
expires_atstringrequiredscopesstring[]requiredWhat the toolbar will be allowed to do (view-only for toolbar
read).tokenstringrequiredValue for
?__lc_toolbar=; single use, expires in 10 minutes.400
403 origin not allowed or no toolbar access
404
POST
https://lucidace.com /v1/toolbar/exchange Request body
application/json
originstringrequiredtokenstringrequired{
"origin": "string",
"token": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/toolbar/exchange" \
-H "Content-Type: application/json" \
-d '{"origin":"string","token":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"expires_at": "2024-01-01T00:00:00Z",
"origin": "string",
"project_id": "string",
"scopes": [
"string"
],
"token": "string"
}Schema
expires_atstringrequiredoriginstringrequiredproject_idstringrequiredscopesstring[]requiredtokenstringrequired403 origin not allowed
404 unknown, used or expired token
Updated