Skip to main content

Create API Key - Push_CreateApiKey

This method allows you to create an API key.

RU vs Guesty

While API key management is done via Rentals United, the API keys created in Rentals United allow the sales channel to access inventory from both Guesty and Rentals United.

Use this operation to create additional Rentals United API keys after the first key pair has been generated in the Rentals United platform.

To generate the first key pair:

  1. Open API Keys in the Rentals United platform.
  2. Select + New API Key.
  3. Enter a descriptive name, select the API scope, and select Create.
  4. Copy the generated AccessKey.
  5. Reveal and copy the SecretKey, or download the key pair as a CSV file. The secret can be revealed only once, so store it securely before closing the dialog.

Use Cases​

  • Create additional keys after the first key is provisioned
  • Issue separate keys for different applications or API scopes
  • Rotate a key without changing personal login credentials

Best Practices​

  • Store the returned SecretKey immediately; it is shown only once
  • Use a descriptive Label and the correct Scope
  • Deploy a replacement key before deleting the old key
  • Keep an inventory of which application uses each AccessKey

Request​

XML request​

<Push_CreateApiKey_RQ>
<Authentication>
<AccessKey>[AccessKey]</AccessKey>
<SecretKey>[SecretKey]</SecretKey>
</Authentication>
<Label>test</Label>
<Scope>XmlApi</Scope>
</Push_CreateApiKey_RQ>

Request fields​

XML PathData TypeTypeDescription
Push_CreateApiKey_RQCRoot element
Push_CreateApiKey_RQ/AuthenticationC, MAuthentication details
Push_CreateApiKey_RQ/Authentication/AccessKeyString(100)MAccess key
Push_CreateApiKey_RQ/Authentication/SecretKeyString(100)MSecret key
Push_CreateApiKey_RQ/LabelString(255)MKey label (name)
Push_CreateApiKey_RQ/ScopeString(100)MScope

Response​

XML response​

<Push_CreateApiKey_RS>
<Status ID="0">Success</Status>
<ResponseID>0123456789ABCDEF0123456789ABCDEF</ResponseID>
<AccessKey>82VOPLE5L2HAJPY4XMZ5</AccessKey>
<SecretKey>u{SY.qDmi-Y+AjX*ox%4BR(47}0g)zqrDS+Ho.[]</SecretKey>
</Push_CreateApiKey_RS>
Store the SecretKey immediately

The SecretKey is returned only once. Save it in a secure secret manager before discarding the response.

Response fields​

XML PathData TypeTypeDescription
Push_CreateApiKey_RSCRoot element
Push_CreateApiKey_RS/StatusString(100)MSee ListStatuses
Push_CreateApiKey_RS/Status@IDIntegerMSee ListStatuses
Push_CreateApiKey_RS/ResponseIDString(32)MUnique response ID
Push_CreateApiKey_RS/AccessKeyString(100)MAccess key
Push_CreateApiKey_RS/SecretKeyString(100)MSecret key. Take note of it, as it is provided to you only once.