> For the complete documentation index, see [llms.txt](https://kb.bevica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.bevica.com/documentation/deprecated-features/generating_a_web_access_key.md).

# Generating a Web Access Key

This is a deprecated feature

{% hint style="danger" %}
October 2022: Web Service access keys have been deprecated in SaaS and replaced with OAuth authentication. Refer to this article: [Web Services Authentication](https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/web-services-authentication)
{% endhint %}

A Web Access Key gives external applications the privilege to communicate with Bevica. The external web application inherits the access permission from the user the key is generated against.

Security in Business Central only allows the user who's logged in to generate and see the web access key.

## To generate a Web Access Key

1. Log into Bevica as the required User and environment (i.e. Production or Sandbox)
2. Search for **Users** and open the user record.
3. Click 'Change Web Service Key' on the ribbon.
4. Say 'yes' to the message '*The current Web Service Access Key will not be valid after editing. All clients that use it have to be updated. Do you want to continue?*'
5. On the next dialogue box, set '**Key Never Expires**' and click OK.
6. The Web Access Key is then visible on the User page. It will be something like KADoCrn\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*3r9wLf45ZNk.

{% hint style="warning" %}
When copying the key to make sure all of it is selected. Some characters are hidden to the right of the box.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kb.bevica.com/documentation/deprecated-features/generating_a_web_access_key.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
