> For the complete documentation index, see [llms.txt](https://developer.siteminder.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.siteminder.com/direct-booking-api/additional-resources/generate-api-key.md).

# Generate API Key

{% hint style="warning" %}
Groups and individual properties on the classic version of the SiteMinder Channel Manager will not be able to access the Direct Booking API.
{% endhint %}

### **Group-level API key (hotel groups on Multi-Property)**

1. **Go to Direct Booking** → API in the MP Extranet&#x20;
2. Generate your key from the API screen&#x20;

*Note: Only Admin users can generate keys.*&#x20;

<figure><img src="/files/Z4u67SecWxKnmFyjPbBy" alt=""><figcaption></figcaption></figure>

If this screen is greyed out, it means your user does not have the correct privileges to view and edit this page. Please have your organisation upgrade your user or have this task completed by an admin user.

***

### **Property-level API key**

1. In Platform, go to Direct Booking → Configuration → API Integration&#x20;
2. Click Generate key

*Note: Only Admin users can generate keys.*&#x20;

<figure><img src="/files/o3i5RfAlDZfANwkHtpbA" alt=""><figcaption></figcaption></figure>

Non-admin users can view the key but only the last 4 characters will be visible. Property-level keys are scoped to your property only and use the same `x-sm-api-key` header as group level keys.&#x20;

Once a key has been generated, your Property ID is also shown on this screen. You can use it in API calls like `GET /properties/{propertyUuid}` to retrieve your property details.&#x20;

Similarly, properties on Little Hotelier can generate keys from the API integration tab as shown below

<figure><img src="/files/H7cKQEfSukBEo1bTtMVi" alt=""><figcaption></figcaption></figure>

**For security reasons, we recommend you revoke the backup key once you have finished using it.**


---

# 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://developer.siteminder.com/direct-booking-api/additional-resources/generate-api-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.
