> 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 # Method name: getPolicy(policyId: string) # Method package: wixEventsV2 # Method menu location: wixEventsV2 --> policies --> getPolicy # Method Link: https://dev.wix.com/docs/velo/apis/wix-events-v2/policies/get-policy.md # Method Description: Retrieves a policy by ID. The `getPolicy()` function returns a Promise that resolves to a policy whose ID matches the given ID. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get Policy ```javascript import { policies } from 'wix-events.v2'; // define policy ID const policyId = '6933ddf1-26c7-46c3-9924-e78c833d6cca'; // get policy async function getPolicy() { try { const result = await policies.getPolicy(policyId); return result; } catch (error) { console.error(error); // Handle the error } }; /* Returns a promise that resolves to the policy. { "_id": "6933ddf1-26c7-46c3-9924-e78c833d6cca", "revision": "1", "_createdDate": "2023-03-07T13:18:09.185Z", "_updatedDate": "2023-03-07T13:18:09.185Z", "name": "Terms and Conditions Event 2", "body": "

Nobody will be allowed admission to the Event without a valid ticket or pass.

", "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" } */ ``` ## Get Policy (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { policies } from 'wix-events.v2'; // define policy ID const policyId = '6933ddf1-26c7-46c3-9924-e78c833d6cca'; export const getPolicy = webMethod(Permissions.Anyone, async () => { try { const result = await policies.getPolicy(policyId); return result; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: * { * "_id": "6933ddf1-26c7-46c3-9924-e78c833d6cca", * "revision": "1", * "_createdDate": "2023-03-07T13:18:09.185Z", * "_updatedDate": "2023-03-07T13:18:09.185Z", * "name": "Terms and Conditions Event 2", * "body": "

Nobody will be allowed admission to the Event without a valid ticket or pass.

", * "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" * } */ ``` ---