> 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

# GetHimalayaAuthorization

# Package: containersProjects

# Namespace: ContainersProjects

# Method link: https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/get-himalaya-authorization.md

## Permission Scopes:
Manage AppSmith Projects: SCOPE.CONTAINERS.PROJECTS

## Introduction

Checks whether the current user can work on a project's app.

Supported for projects whose `platform` is `HIMALAYA_MOBILE`. The response returns the canonical
slug of the project's app in `canonicalApp`. Specify this value when you call
[Save Project Design](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/save-project-design.md).

The response is a check only and doesn't grant access. Each later change to the project is
authorized again.

---

## REST API

### Schema

```
 Method: getHimalayaAuthorization
 Description: Checks whether the current user can work on a project's app.  Supported for projects whose `platform` is `HIMALAYA_MOBILE`. The response returns the canonical slug of the project's app in `canonicalApp`. Specify this value when you call [Save Project Design](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/save-project-design.md).  The response is a check only and doesn't grant access. Each later change to the project is authorized again.
 URL: https://www.wixapis.com/containers/projects/v1/projects/{projectId}/himalaya-authorization
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  projectId
 Method parameters: 
   param name: projectId | type:   none | required: true 
 Return type: GetHimalayaAuthorizationResponse
  - name: authorizationVersion | type: integer | description: Version of the response format. Currently always `1`.  
  - name: metaSiteId | type: string | description: GUID of the Wix site that the check was made for.  | validation: format GUID
  - name: projectId | type: string | description: Project GUID.  | validation: format GUID
  - name: canonicalApp | type: string | description: Canonical slug of the project's app.  Specify this value in `canonicalApp` when you call [Save Project Design](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/save-project-design.md).  | validation: maxLength 200
  - name: workerLaunch | type: boolean | description: Whether the current user can start new work by the coding agent on the project.  
  - name: saveDesign | type: boolean | description: Whether the current user can save the project's design.  


```

### Examples

### Get Himalaya Authorization
Checks whether the current user can work on a project's app.

```curl
curl -X GET \
'https://www.wixapis.com/containers/projects/v1/projects/8046df3c-7575-4098-a5ab-c91ad8f33c47/himalaya-authorization' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.containers.projects.getHimalayaAuthorization(projectId)
 Description: Checks whether the current user can work on a project's app.  Supported for projects whose `platform` is `HIMALAYA_MOBILE`. The response returns the canonical slug of the project's app in `canonicalApp`. Specify this value when you call [Save Project Design](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/save-project-design.md).  The response is a check only and doesn't grant access. Each later change to the project is authorized again.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  projectId
 Method parameters: 
   param name: projectId | type: string | description: GUID of the project to check. | required: true | validation: format GUID
 Return type: PROMISE<GetHimalayaAuthorizationResponse>
  - name: authorizationVersion | type: integer | description: Version of the response format. Currently always `1`.  
  - name: metaSiteId | type: string | description: GUID of the Wix site that the check was made for.  | validation: format GUID
  - name: projectId | type: string | description: Project GUID.  | validation: format GUID
  - name: canonicalApp | type: string | description: Canonical slug of the project's app.  Specify this value in `canonicalApp` when you call [Save Project Design](https://dev.wix.com/docs/api-reference/mobile/containers-app/containers-projects/project-v1/save-project-design.md).  | validation: maxLength 200
  - name: workerLaunch | type: boolean | description: Whether the current user can start new work by the coding agent on the project.  
  - name: saveDesign | type: boolean | description: Whether the current user can save the project's design.  


```

### Examples

### Check whether the current user can work on a project
```javascript
import { projects } from "@wix/containers";

async function getHimalayaAuthorization() {
  const response = await projects.getHimalayaAuthorization(
    "8046df3c-7575-4098-a5ab-c91ad8f33c47",
  );
}

/* Promise resolves to:
 * {
 *   "authorizationVersion": 1,
 *   "metaSiteId": "9a6c3e1f-7b4d-4a2e-8c5f-1e3b7d9a2c64",
 *   "projectId": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
 *   "canonicalApp": "coffee-corner-8046df3c",
 *   "workerLaunch": true,
 *   "saveDesign": true
 * }
 */

```

### getHimalayaAuthorization (self-hosted)
Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { projects } from '@wix/containers';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { projects },
  // Include the auth strategy and host as relevant
});


async function getHimalayaAuthorization(projectId) {
  const response = await myWixClient.projects.getHimalayaAuthorization(projectId);
};
```

---