> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mocklyapi.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Private Endpoints

> MocklyAPI provides secure access to your mock APIs

MocklyAPI offers private endpoints to ensure the security of your mock API endpoints.

When private endpoints are enabled, requests must include a valid `auth_token` as a query parameter or the `mocklyapiauthtoken` header to access the mock API.

<Note>This feature is enabled by default to safeguard your mock API endpoints.</Note>

<Frame>
  <img src="https://mintcdn.com/mocklyapi/mnDN9u-0ibULlL6w/images/private-endpoint-token.png?fit=max&auto=format&n=mnDN9u-0ibULlL6w&q=85&s=e472d146cf7065397756574b160e272d" alt="Private endpoint settings token view." style={{ borderRadius: '0.5rem' }} width="1530" height="355" data-path="images/private-endpoint-token.png" />
</Frame>

You have the option to disable this feature if you wish to make your mock API endpoints publicly accessible.

<Warning>Ensure you save the endpoint settings for the changes to take effect.</Warning>
