In salesforce custom links, a user can reference the salesforce session ID by using the API global variable, like so: {!Api.Session_ID}
I have a visualforce page that needs this variable, but it doesn't seem to recognize it. The error message says to create the apex property 'api' in the page's custom controller.
This is my desired use of it: My link
How can I achieve this?