> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Elevate REST API Call Permissions for Self-hosting ## Article: Elevate REST API Call Permissions for Self-hosting ## Article Link: https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/elevate-rest-api-call-permissions-for-self-hosting.md ## Article Content: # Elevate REST API Call Permissions with Self-Hosting In workflows that use mostly [site visitor](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md#site-visitors), [site member](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md#site-members), or [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md#wix-users) authentication, you may occasionally need to call APIs that require the elevated level of a [Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md#wix-apps) identity for authentication. This can happen when coding in a frontend environment such as a [site extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/about-site-extensions.md) or a [dashboard extension](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/dashboard-extensions/about-dashboard-extensions.md). The process involves two steps: 1. Setting up your app's backend code to handle requests that require Wix app permissions. 1. Sending an authenticated call from your frontend code to your app's backend.
**Important:** Exposed elevated function calls create a security risk for [privilege escalation attacks](https://en.wikipedia.org/wiki/Privilege_escalation). Make sure to protect your exposed function calls with the appropriate logic.To elevate permissions for API calls: ## Step 1 | Set up your app's backend The first step is to set up your app's backend to handle requests for API calls from your frontend. To set up your backend: 1. Set up an endpoint to receive HTTP requests. In your endpoint's code, extract the `authorization` header from incoming requests. When you send requests to the endpoint from your frontend code, this header's value will be an access token that includes authentication data for the site visitor or member. 1. Retrieve the [app `instanceId`](https://dev.wix.com/docs/build-apps/develop-your-app/access/app-instances/about-app-instances.md) from the access token. In your endpoint code, call Wix's [Token Info](https://dev.wix.com/docs/rest/app-management/oauth-2/token-info.md) endpoint. The response includes the `instanceId`. ```curl curl -X POST ֿ 'https://www.wixapis.com/oauth2/token-info' --d '{ "token": "