Canvases
The canvas object has three primary keys, plus specific options (like title, icon, height):
- “type”: The type of canvas. Required.
- “url”: The target URL for the canvas. Required.
- “identification”: Field that identifies the canvas between other canvases. Optional if you don’t have two or more canvases using the same type.
To view the available canvas types and options, visit the Canvas lists for the mobile app and admin dashboard.
The canvas URL is manipulated before being introduced into the interface. To enable contextual experiences, Optix adds an authentication token that can be used by the canvas to retrieve user/organization-wide data.
If you don’t provide a “macro” to be replaced, the canvas system appends the variable “token” to the query parameter list of the URL.
Using macro replacements
Macros can be defined to customize the URL generation. With macros, you can change the request variables, repeat information, and also use fragment variables.
Example 1:
If you provide “https://example.com/mypage”, the Optix system opens the link “https://example.com/mypage?token=thepersonaltokengenerated”
If you want to change the URL to use a specific format, you can use macroses, like “{token}.”
Example 2:
If you provide “https://example.com/mypage?mytoken={token}” the Optix system opens the link “https://example.com/mypage?mytoken=thepersonaltokengenerated”
You can also use the macro as part of the URL path or a fragment.
Example 3:
If you provide “https://example.com/mypage/{token}/show” the Optix system opens the link “https://example.com/mypage/thepersonaltokengenerated/show”
Example 4:
If you provide “https://example.com/mypage?anyother=var#mytoken={token}” the Optix system opens the link “https://example.com/mypage?anyother=var#mytoken=thepersonaltokengenerated”
If your canvas application backend does not require the token, we support the use of tokens in the URL fragment (example 4) for security purposes. In this case, the token is never sent to the backend.
Macros list