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

# Sync members and check-ins with Redpoint HQ

> Set up the Redpoint HQ integration: import members from a customer segment, map them to door groups, and record a Redpoint HQ check-in each time a member unlocks a door.

Members who lose access to the gym are removed from Allthenticate too.

## 1. Create a customer segment in Redpoint HQ

The integration syncs the members of one Redpoint HQ customer segment. The simplest choice is a segment of every customer with door access to at least one gym in your organization. Redpoint HQ support can help you set it up.

![Redpoint HQ segment builder with a Match any of the following group containing three Door Access customer custom attribute conditions, each set to customer satisfies the condition](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/redpoint-segment-setup.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=e3edc58a2f2fc7a11544d75604c0b3f1)

An example segment: customers who satisfy any of the facility door access conditions. Facility names are hidden.

## 2. Collect the details from Redpoint HQ

### Segment ID

Get the numeric ID of the segment one of two ways:

* **From the Graph ID:** go to **Manage** > **Customer Segments & Requirements**, open the segment, click the **⋯** menu and copy the **Graph ID**. Decode it as described below.
* **From the URL:** open the segment in the Redpoint HQ web app. The 8-digit number in the page address is the segment ID.

![Browser address bar showing https://\[YOUR-SUBDOMAIN-HERE\].rphq.com/segments/list?customerSegmentId=\[SEGMENT-ID-HERE\] with the segment ID highlighted](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/redpoint-segment-id-url.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=d398ac213bdbd3efdde58733e75c73ea)

The segment ID is the customerSegmentId value at the end of the address.

A Graph ID, or an ID that Redpoint HQ staff send you, may be letters only, such as `Q3VzdG9tZXJTZWdtZW50OjEyMzQ1`. Base64-decode it to get `CustomerSegment:12345`; the number after the colon (`12345`) is the segment ID.

### API key

**1. Open API Keys**

Go to **Manage** > **Organization and Facility Settings**, then **API Keys** in the left menu, and click **Add API Key**.

![Redpoint HQ settings with API Keys selected in the left menu and the Add API Key button above an empty key list](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/redpoint-api-keys.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=28c715534b1f2f74fa45c485fdc31f26)

The API Keys page in Redpoint HQ settings.

**2. Name the key**

Give it a title and description.

**3. Set the permissions**

On each tab, set:

| Tab | Setting |
| - | - |
| Query Permissions | Allow All |
| Mutation Permissions | createCheckIn |
| Node Permissions | CheckIn, CustomReport, Customer, CustomerSegment, Facility, Gate |
| Type Permissions | Allow All |

**4. Copy the key**

Check **Show API Key** and copy the value.

### Default facility code

In the same settings area, click **Facilities** in the left menu and copy the **slug** of any facility. Which one you pick does not matter.

![Redpoint HQ settings with Facilities selected, showing a facility row with Name, Short Name, Public URL, Slug and Updated At columns and the slug highlighted](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/redpoint-facilities.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=655864224cd951c1374a9f424a6fced1)

The Facilities list. Copy the value in the Slug column.

### API URL

Your organization's API URL has the form `https://<your-subdomain>.rphq.com/api/graphql`. Use the organization URL, not a facility-specific one, or the integration fails. Redpoint HQ support can give you this URL.

## 3. Add the integration in Allthenticate

**1. Open Integrations**

In the [admin portal](https://admin.allthenticate.com), go to **Integrations**, click **New Integration** and select **RedpointHQ**.

**2. Enter the details**

Fill in `api_url`, `api_key`, `target_segment` (the numeric segment ID) and `default_facility_code` from step 2.

![Allthenticate admin portal Add an integration dialog with RedpointHQ selected and empty api\_url, api\_key, target\_segment and default\_facility\_code fields, and Period (Hours) set to 6](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/add-integration-redpoint.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=eaa86ad7564f76155e6dc6eed2b51ce3)

The Add an integration dialog with RedpointHQ selected.

**3. Set the period**

**Period (Hours)** sets how often members are synced. The shortest period you can set is 1 hour; contact [help@allthenticate.com](mailto:help@allthenticate.com) if you need a shorter one. Then add the integration.

**4. Run the first sync**

Select the integration in the list and click **Manually Run Task**. The first run can take a few moments.

After the first run, the integration creates a user group for each door access category in Redpoint HQ, containing each member with that access.

## 4. Set up doors, configurations and policies

**1. Group the doors by facility**

Go to **Doors** > **Groups**, create a group for each facility, and add each facility's readers to its group.

**2. Find each gate's ID**

Each facility has a check-in gate in Redpoint HQ. Go to **Manage** > **Organizational & Facility Settings** > **Facility: \[Location]** > **Check-In** > **Gates**, click the **⋯** menu next to the gate and copy its **Graph ID**.

**3. Create a configuration per gate**

Go to **Configurations** > **New Configuration** and create one configuration for each facility. Paste the check-in URL below into **Authorization URL (Advanced)**, enter `message` in **JSON Response Field (Advanced)**, then click **Test** and save.

**4. Create the policies**

For each facility, create a policy that maps its door group to the matching user group, with the facility's configuration applied at all times.

Set the rest of each gate's configuration as follows:

| Setting | Value |
| - | - |
| Auto lock on disconnect | On |
| Auto unlock on connect | Off |
| Wiegand | On |
| Auto Unlock | Presence |
| Lock | Intent |
| Unlock | Presence |

![Allthenticate configuration dialog named After Hours Gate with description The after hours gate with rphq check-in; Auto lock on disconnect on, Auto unlock on connect off, Wiegand on, Auto Unlock set to Presence, Lock set to Intent and Unlock set to Presence](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/redpoint-gate-configuration.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=b450621dab40659de1f51937b11ac86d)

An example gate configuration. Paste the check-in URL into Authorization URL (Advanced).

### Build the check-in URL

The easiest way to get the URL is the builder below: enter your values and copy the finished URL. It encodes the gate ID for you, accepting either the plain gate number or the Graph ID. Everything stays in your browser; nothing you type is saved or sent.

To build it by hand, copy this template exactly and replace each bracketed value, brackets included. For how authorization URLs work in general, see [How the authorization URL works](https://help.allthenticate.com/help/integrations/climbing-gyms.md#how-the-authorization-url-works).

```text theme={null}
https://backend.allthenticate.com/rphqcheckin?headers={"Content-Type": "application/json"}&subdomain=[SUBDOMAIN]&rphq_facility_code=[FACILITY-CODE]&api_key=[API-KEY]&rphq_gate_id=[ENCODED-GATE-ID]&email=%(email)s&org_id=[ALLTHENTICATE-ORG-ID]
```

| Placeholder | Value |
| - | - |
| `[SUBDOMAIN]` | The part before `.rphq.com` in your Redpoint HQ address. For `yourgym.rphq.com`, use `yourgym`. |
| `[FACILITY-CODE]` | The slug of the facility this door belongs to, from **Settings** > **Facilities** in Redpoint HQ |
| `[API-KEY]` | The Redpoint HQ API key from step 2 |
| `[ENCODED-GATE-ID]` | The gate ID, base64-encoded in the form `Gate:NUMBER`. For gate `10000031`, use `R2F0ZToxMDAwMDAzMQ==`. The Graph ID from the gate's **⋯** menu is already encoded (it starts with `R2F0ZTox`), so use it as is. |
| `[ALLTHENTICATE-ORG-ID]` | Your organization's ID in Allthenticate. Ask [help@allthenticate.com](mailto:help@allthenticate.com) if you do not have it. |

Leave `%(email)s` exactly as written. Allthenticate fills in each member's email at check-in, so members' emails in Redpoint HQ must match the ones they use with Allthenticate.

> [!NOTE]
>
> Check-ins only work for Redpoint HQ subdomains that Allthenticate has enabled. If **Test** returns "Invalid subdomain", contact [help@allthenticate.com](mailto:help@allthenticate.com).

### If the URL shows as invalid

* Make sure it starts with `https://backend.allthenticate.com/rphqcheckin?headers=`, not with the `{"Content-Type"...}` part.
* Use straight quotes around `Content-Type` and `application/json`, not curly ones. Curly quotes often appear when you copy from Word, Notes or Slack.
* Check that no bracketed placeholders are left and that the gate ID is the encoded value, not the plain number.
* If **Test** says the request failed, confirm your subdomain, facility code and API key with Redpoint HQ support.

### Check-in messages

| Message | Meaning |
| - | - |
| User has no registered Redpoint ID | The member was not imported by the integration. Check that they are in the target segment and run the sync again. **Test** uses the placeholder email `test@allthenticate.com`, so it returns this message even when the URL is correct. |
| Unable to find a user by that id | Redpoint HQ does not recognize the member's ID. |
| Unable to create check in due to alert | Redpoint HQ refused the check-in because of an alert on the member's profile, such as a missing waiver or an expired membership. Clear it in Redpoint HQ and the member can try again. |

## Tell your members

You can add your gym's logo to this poster and put it up at your gym, so members know how to get the Allthenticator app and how to reach Allthenticate support. See [Climbing gyms](https://help.allthenticate.com/help/integrations/climbing-gyms.md#tell-your-members) for the same poster.

![Poster titled Your phone is now your key: members download the Allthenticator app, sign up with their membership email, and allow Bluetooth; QR codes link to the App Store, Google Play, the help center and support tickets](https://mintcdn.com/allthenticate-e69095b0/7yUU7sq9zDstLP_S/images/help/integrations/gym-member-poster.png?fit=max\&auto=format\&n=7yUU7sq9zDstLP_S\&q=85\&s=b4af90bbd569d0f916dc5ace78abcf21)

Member poster. Replace \[YOUR GYM LOGO] with your logo.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.