Skip to main content

API Reference

This document is a reference for the Crux API. It contains information about the different APIs, the resources they return, and the response objects. Refer to the intro for more information about the API or the authentication page for information about how to authenticate your API requests.

API Endpoints​

POST /api/v1/climbs/:id/comments​

Posts a comment on a climb, the same as commenting in the app: it shows in the climb's activity and notifies anyone it mentions and, on a custom climb, the climb's poster. Comments are text only; photos and videos aren't supported yet. Returns the new comment with a 201 status.

Parameters:​

id​

The ID of the climb to comment on. This parameter is required.

body​

The text of the comment, up to 2500 characters. Mention a user with @[username:ID], as the app does. This parameter is required.

Authorization:​

Any authenticated user; the comment is posted as you. Climbs you can't see (other people's drafts) return a 404.

Response:​

ClimbComment

GET /api/v1/gyms/:gym_slug/climb_lists​

Returns all public climb lists for a specific gym.

Parameters:​

gym_slug​

The URL slug of the gym whose lists you want to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

ClimbList

GET /api/v1/users/:user_id/climb_lists​

Returns all climb lists created by a user.

Parameters:​

user_id​

Must be "me" or your own user ID, since you can only view your own lists. This parameter is required.

Authorization:​

You can only view your own lists.

Response:​

ClimbList

GET /api/v1/climb_lists/:id​

Returns details for a specific climb list. Must be public or owned by the user.

Parameters:​

id​

The ID of the climb list to retrieve. This parameter is required.

Authorization:​

Public if the list is public. Otherwise, restricted to the user who owns the list.

Response:​

ClimbList (full)

POST /api/v1/climb_lists/:list_id/add_climb​

Adds a climb to a climb list. Returns HTTP 200 if successful.

Parameters:​

list_id​

The ID of the list to add the climb to. This parameter is required.

climb_id​

The ID of the climb to add. This parameter is required.

Authorization:​

User must own the list or be a gym admin of a gym-owned list. A gym admin editing the gym's list needs the gym's plan to include the public API (Crux Pro); otherwise returns a 403.

Response:​

Empty

POST /api/v1/climb_lists/:list_id/remove_climb​

Removes a climb from a list. Returns HTTP 200 if successful.

Parameters:​

list_id​

The ID of the list. This parameter is required.

climb_id​

The ID of the climb to remove. This parameter is required.

Authorization:​

User must own the list or be a gym admin of a gym-owned list. A gym admin editing the gym's list needs the gym's plan to include the public API (Crux Pro); otherwise returns a 403.

Response:​

Empty

GET /api/v1/climbs/:id​

Returns details for a specific climb, including drafts (which the gym climb lists leave out), so a climb returned as a wall's active climb can always be fetched.

Parameters:​

id​

The ID of the climb to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

Climb (full)

GET /api/v1/gyms/:gym_slug/climbs/custom​

Returns a list of custom climbs for the specified gym.

Parameters:​

gym_slug​

The URL slug of the gym whose custom climbs you want to retrieve. This parameter is required.

page​

The page number to retrieve (defaults to 1). This parameter is optional.

Authorization:​

Public.

Response:​

Climb

GET /api/v1/gyms/:gym_slug/climbs/official​

Returns a list of official climbs for the specified gym.

Parameters:​

gym_slug​

The URL slug of the gym whose official climbs you want to retrieve. This parameter is required.

page​

The page number to retrieve (defaults to 1). This parameter is optional.

Authorization:​

Public.

Response:​

Climb

GET /api/v1/climbs/:id/drawings​

Returns the draw-type modifications (freehand drawings) for a specific climb, including drafts.

Parameters:​

id​

The ID of the climb to retrieve drawings for. This parameter is required.

Authorization:​

Public.

Response:​

ClimbDrawing

POST /api/v1/climbs/:id/activate​

Sets a climb as the active climb on its wall. Only one climb can be active per gym, so any other active climb at the gym is deactivated. Triggers the climb.activated webhook, and climb.deactivated for any climb it replaces. Returns the activated climb.

Parameters:​

id​

The ID of the climb to set as active. This parameter is required.

Authorization:​

Any authenticated user. The climb's gym must have LED features enabled.

Response:​

Climb (full)

POST /api/v1/climbs/:id/deactivate​

Clears the active climb on the climb's wall, if this climb is the active one. Does nothing if the climb is not currently active. Triggers the climb.deactivated webhook when it clears the climb. Returns HTTP 200 if successful.

Parameters:​

id​

The ID of the climb to deactivate. This parameter is required.

Authorization:​

Any authenticated user. The climb's gym must have LED features enabled.

Response:​

Empty

GET /api/v1/gym_walls/:id​

Returns details for a specific gym wall.

Parameters:​

id​

The ID of the gym wall to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

GymWall

GET /api/v1/gym_walls/:id/holds​

Returns the holds on a gym wall's current photo, with the photo they're on. Hold masks are in the photo's width x height pixels. This is the same as GET /api/v1/wall_photos/:id/holds for the wall's current photo.

Parameters:​

id​

The ID of the gym wall whose holds you want to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

WallPhoto (with_holds)

POST /api/v1/gym_walls/:id/climbs​

Creates a climb on a gym wall from holds on the wall's photo, picked by their IDs from GET /api/v1/gym_walls/:id/holds. Crux draws the climb's image for you, the same way it draws climbs posted in the app. Send the parameters as a JSON body. Triggers the same webhooks as posting a climb in the app. Returns the new climb with a 201 status. If any hold IDs aren't on the photo, returns a 422 with the unknown IDs in unknown_hold_ids.

Parameters:​

id​

The ID of the gym wall to create the climb on. This parameter is required.

name​

The name of the climb. This parameter is required.

grade​

The grade of the climb. Must be one of the gym's grades (see GET /api/v1/gyms/:gym_slug). This parameter is required.

holds​

The holds in the climb, as a list of { "id": "...", "type": "start" } objects. id is a hold ID from the photo's holds. type is one of [hand, hand_l, hand_r, foot, foot_l, foot_r, start, finish, zone]. Optionally add circuit_numbers, a list of integers, to put a hold in a circuit. This parameter is required.

photo_id​

The ID of the wall photo the holds are on (defaults to the wall's current photo). Must be a photo of this wall. This parameter is optional.

description​

A description of the climb. This parameter is optional.

foot_rules​

The climb's foot rules, as returned in a climb's foot_rules (for example feet_follow_hands). Leave it out for the standard rules. This parameter is optional.

no_matching​

Set to true if hands can't match on any hold except the start and finish holds, or false if they can. Defaults to the gym's setting for new climbs (usually false). This parameter is optional.

angle​

The wall angle the climb is set at, in degrees, for walls with an adjustable angle. This parameter is optional.

draft​

Set to true to save the climb as a draft, visible only to you. Defaults to false. This parameter is optional.

official​

Set to true to create an official climb instead of a custom climb. Requires color. This parameter is optional.

color​

The climb's hold color, for official climbs. Must be one of the gym's hold colors. This parameter is optional.

Authorization:​

Any authenticated user can create custom climbs; the climb is posted as you. Official climbs can only be created by the gym's admins, and only when the gym's plan includes the public API (Crux Pro; otherwise a 403). Free-tier gyms limit how many climbs you can create, the same as in the app. A gym that switched off "Climbers can post climbs on photos" only takes climbers' climbs on its spray walls.

Response:​

Climb (full)

GET /api/v1/gym_walls/:id/active_climb​

Returns the active climb for the specified gym wall.

Parameters:​

id​

The ID of the gym wall to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

Climb (full)

GET /api/v1/gyms/:gym_slug/gym_walls​

Returns a list of all gym walls for the specified gym.

Parameters:​

gym_slug​

The URL slug of the gym whose walls you want to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

GymWall

GET /api/v1/gyms/:gym_slug​

Returns details for a specific gym.

Parameters:​

gym_slug​

URL slug for the gym. This parameter is required.

Authorization:​

Public.

Response:​

Gym

GET /api/v1/gyms/:gym_slug/webhook_registrations​

List all webhook registrations for a gym.

Parameters:​

gym_slug​

URL slug for the gym. This parameter is required.

Authorization:​

Restricted to gym admins. The gym's plan must include the public API and webhooks (Crux Pro); otherwise returns a 403.

Response:​

WebhookRegistration (full)

GET /api/v1/gyms/:gym_slug/active_climb​

Returns the active climb for any wall on the specified gym.

Parameters:​

gym_slug​

URL slug for the gym. This parameter is required.

Authorization:​

Public.

Response:​

Climb (full)

POST /api/v1/climbs/:id/sends​

Logs a send of a climb for you, the same as logging it in the app: it goes in your climb session at the climb's gym on send_date (created if needed) and triggers the climb.sent webhooks. A send of a climb you've already sent is a repeat. To import a climber's history, log their sends oldest first, so each climb's first send is the one that isn't a repeat. Returns the new send with a 201 status.

Parameters:​

id​

The ID of the climb you sent. This parameter is required.

send_date​

The date you sent it on, in your own time zone (YYYY-MM-DD). Can be in the past, not in the future. This parameter is required.

attempts​

How many attempts the send took, from 1 (a flash) to 100. Defaults to the attempts you've already logged towards it in the app, or 1. This parameter is optional.

Authorization:​

Any authenticated user; the send is logged as you. Climbs you can't see (other people's drafts) return a 404, and climbs in a competition, which are scored on the competition's scorecard, a 422.

Response:​

Send (full)

GET /api/v1/users/:user_id​

Returns details for a specific user.

Parameters:​

user_id​

The ID of the user to retrieve. Use "me" to retrieve your own user details. This parameter is required.

Authorization:​

Public.

Response:​

One of: [User, User (authenticated)]

GET /api/v1/users/:user_id/climb_sessions​

Returns a list of climb sessions for the current user.

Parameters:​

user_id​

Must be "me" or your own user ID, since you can only view your own climb sessions. This parameter is required.

Authorization:​

You can only view your own climb sessions.

Response:​

ClimbSession

GET /api/v1/users/:user_id/webhook_registrations​

Returns all webhook registrations for the current user.

Parameters:​

user_id​

Must be "me" or your own user ID, since you can only view your own webhook registrations. This parameter is required.

Authorization:​

You can only view your own webhook registrations.

Response:​

WebhookRegistration (full)

GET /api/v1/wall_photos/:id​

Returns a wall photo: a photo of a gym wall that climbs are set on. Re-photographing a wall gives it a new current photo; climbs set on the old one keep it.

Parameters:​

id​

The ID of the wall photo to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

WallPhoto

GET /api/v1/wall_photos/:id/holds​

Returns the holds on a wall photo. Hold masks are in the photo's width x height pixels, and each hold's id matches the holds of climbs set on this photo.

Parameters:​

id​

The ID of the wall photo whose holds you want to retrieve. This parameter is required.

Authorization:​

Public.

Response:​

WallPhoto (with_holds)

GET /api/v1/wall_photos/:id/hold_mapping​

Returns which hold of a wall photo is which hold of the wall's previous photo. When a wall is re-photographed, Crux matches the old photo's holds to the new one's, so you can carry anything you keep per hold over to the new hold IDs. Follow a wall's photos with previous_photo_id and next_photo_id, calling this for each. Responds 404 when the photo wasn't matched to a previous photo.

Parameters:​

id​

The ID of the wall photo (the newer of the two). This parameter is required.

Authorization:​

Public.

Response:​

HoldMapping

POST /api/v1/webhook_registrations​

Registers a webhook owned by you. Without gym_slug it gets your own events (user events: climb.sent, climb.created, climb.viewed). With gym_slug it gets that gym's events (gym events: climb.created, climb.updated, climb.activated, climb.deactivated, climb.sent, gym_wall.created), only those you could see in the app (not other climbers' draft climbs, or sends by climbers who hide their profile). It's listed with your webhooks, not the gym's. Send the parameters as a JSON body or form fields. Returns the new registration, including its signing_secret, with a 201 status. Returns a 422 with the reason if the URL or event type isn't valid.

Parameters:​

url​

The http or https URL Crux POSTs each event to. It must be on the public internet. This parameter is required.

event_type​

The event to subscribe to, for example climb.activated. Must be a user event without gym_slug, or a gym event with it. This parameter is required.

gym_slug​

The URL slug of a gym to get that gym's events. You must have opened the gym in Crux (or be one of its admins), and be allowed to see it if it's private. Leave it out to get your own events. This parameter is optional.

Authorization:​

Any authenticated user. A gym webhook's gym must be one you've opened in Crux or administer.

Response:​

WebhookRegistration (full)

DELETE /api/v1/webhook_registrations/:id​

Deletes a webhook registration, so its URL gets no more events. Works for your own webhooks and, for gym admins, the gym's webhooks. Returns HTTP 200 if successful.

Parameters:​

id​

The ID of the webhook registration to delete. This parameter is required.

Authorization:​

Your own webhook registrations, or the webhook registrations of a gym you administer.

Response:​

Empty

Response Objects​

These are the definitions of the objects returned by the API. Some objects have variants, for example, User has an "authenticated" variant with additional information that we return when you're fetching your own user. The API documentation above indicates when a variant is returned.

Climb​

id integer​

An ID that uniquely identifies the resource across Crux.

angle nullable integer​

The angle this climb was set at. Only for climbs on adjustable walls.

color nullable string​

The color of the climb. Only for official climbs in commercial gyms.

created_at string​

When the climb was created.

description nullable string​

Optional climber-provided description of the climb.

foot_rules nullable string​

Foot rules for the climb. One of [feet_follow_hands, any_feet, campus, feet_follow_hands_open_kicker, only_marked_feet], or custom_<id> for a feet rule the gym defined itself.

foot_rules_name nullable string​

Human-readable name of the climb's foot rules, e.g. "Feet follow hands" or the name of the gym's own feet rule.

grade nullable string​

The grade of the climb. This will be one of the gym's available grades.

image_height nullable integer​

Height of the climb's image in pixels (after cropping).

image_url nullable string​

The final (edited) image URL for the climb: the photo with its holds highlighted. For most climbs this image is drawn from the climb's data when it's first requested, so the first request can take up to a second; after that it's cached. The URL changes whenever the climb's holds, photo or styling change.

image_width nullable integer​

Width of the climb's image in pixels (after cropping).

name string​

The name of the climb.

no_matching boolean​

Whether the climb is "no matching": hands can't match on any hold except the start and finish holds.

number_of_comments integer​

The number of comments on this climb.

number_of_sends integer​

The number of times this climb has been sent.

unedited_image_url nullable string​

The original uploaded image URL, before hold highlights.

unset_at nullable string​

When the climb was marked as unset (removed from the wall).

updated_at string​

When the climb was last updated.

Climb (full)​

id integer​

An ID that uniquely identifies the resource across Crux.

angle nullable integer​

The angle this climb was set at. Only for climbs on adjustable walls.

color nullable string​

The color of the climb. Only for official climbs in commercial gyms.

created_at string​

When the climb was created.

description nullable string​

Optional climber-provided description of the climb.

foot_rules nullable string​

Foot rules for the climb. One of [feet_follow_hands, any_feet, campus, feet_follow_hands_open_kicker, only_marked_feet], or custom_<id> for a feet rule the gym defined itself.

foot_rules_name nullable string​

Human-readable name of the climb's foot rules, e.g. "Feet follow hands" or the name of the gym's own feet rule.

grade nullable string​

The grade of the climb. This will be one of the gym's available grades.

gym_name string​

The name of the gym where the climb is located.

gym_slug string​

The URL slug of the gym where the climb is located.

holds ClimbHold (on_climb)​

List of holds in the climb.

image_height nullable integer​

Height of the climb's image in pixels (after cropping).

image_url nullable string​

The final (edited) image URL for the climb: the photo with its holds highlighted. For most climbs this image is drawn from the climb's data when it's first requested, so the first request can take up to a second; after that it's cached. The URL changes whenever the climb's holds, photo or styling change.

image_width nullable integer​

Width of the climb's image in pixels (after cropping).

name string​

The name of the climb.

no_matching boolean​

Whether the climb is "no matching": hands can't match on any hold except the start and finish holds.

number_of_comments integer​

The number of comments on this climb.

number_of_sends integer​

The number of times this climb has been sent.

photo nullable object​

The photo the climb is drawn on: { id, width, height }. Its holds are at GET /api/v1/wall_photos/:id/holds, and the climb's photo_masks are in its pixels. Null for climbs without a photo.

setter_id nullable integer​

User ID of the setter (custom climbs only).

setter_name nullable string​

Name of the setter who posted the climb (custom climbs only).

unedited_image_url nullable string​

The original uploaded image URL, before hold highlights.

unset_at nullable string​

When the climb was marked as unset (removed from the wall).

updated_at string​

When the climb was last updated.

wall_id nullable integer​

The ID of the wall this climb is on. Returns null if the climb is not set on a wall.

sends array Send​

List of sends for this climb.

ClimbComment​

id integer​

An ID that uniquely identifies the resource across Crux.

body nullable string​

The text of the comment.

climb_id integer​

The ID of the climb the comment is on.

created_at string​

Timestamp when the comment was posted.

user User​

The user who posted the comment.

ClimbDrawing​

color nullable string​

The hex color code of the drawing (e.g. '#FF0000').

points array​

An array of coordinate pairs [[x, y], ...] that form the drawing path. Coordinates are relative to the climb image dimensions.

type string​

The type of drawing modification. Always 'draw'.

ClimbHold​

id nullable string​

Identifies the hold. A hold has the same ID in a wall's or photo's holds and in the holds of every climb that uses it, so you can match them up (to light LEDs, for example). Re-photographing a wall gives its holds new IDs.

mask array​

The outline of the hold: a list of [x, y] points that form a polygon. In a photo's holds, the points are in the photo's width x height pixels. In a wall's holds, they're in the wall's image_width x image_height pixels. In a climb's holds, they're in the pixels of the image the climb was marked up on, before cropping; use photo_mask instead.

ClimbHold (on_climb)​

circuit_numbers array​

Circuit identifiers applied to this hold. Empty when the climb is not part of a circuit.

hold_type string​

The type of hold. One of [hand, hand_l, hand_r, foot, foot_l, foot_r, start, finish, zone]

id nullable string​

Identifies the hold. A hold has the same ID in a wall's or photo's holds and in the holds of every climb that uses it, so you can match them up (to light LEDs, for example). Re-photographing a wall gives its holds new IDs.

mask array​

The outline of the hold: a list of [x, y] points that form a polygon. In a photo's holds, the points are in the photo's width x height pixels. In a wall's holds, they're in the wall's image_width x image_height pixels. In a climb's holds, they're in the pixels of the image the climb was marked up on, before cropping; use photo_mask instead.

photo_mask nullable array​

The outline of the hold in the pixels of the climb's photo (width x height), the same as in the photo's holds. Null if the climb has no photo.

ClimbList​

id integer​

An ID that uniquely identifies the resource across Crux.

climb_count integer​

The number of climbs in the list.

created_at string​

Timestamp when the list was created.

icon string​

Icon for this list. A single emoji.

name string​

The name of the climb list.

owned_by_gym boolean​

Whether this list is owned by the gym. Gym-owned lists can be edited by all gym staff.

pinned_at nullable string​

Timestamp when the list was pinned (if applicable).

gym nullable Gym​

The gym that owns this list, if the list is gym-owned.

owner nullable User​

The user who owns the list, if the list is not gym-owned.

ClimbList (full)​

id integer​

An ID that uniquely identifies the resource across Crux.

climb_count integer​

The number of climbs in the list.

created_at string​

Timestamp when the list was created.

icon string​

Icon for this list. A single emoji.

name string​

The name of the climb list.

owned_by_gym boolean​

Whether this list is owned by the gym. Gym-owned lists can be edited by all gym staff.

pinned_at nullable string​

Timestamp when the list was pinned (if applicable).

climbs array Climb​

All climbs in this list.

gym nullable Gym​

The gym that owns this list, if the list is gym-owned.

owner nullable User​

The user who owns the list, if the list is not gym-owned.

ClimbSession​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the session was created.

date string​

The date of the climb session (YYYY-MM-DD). This can be different from the created_at timestamp if you are creating a session for a past date.

sends array Send (full)​

List of sends during the session.

Empty​

Gym​

id integer​

An ID that uniquely identifies the resource across Crux.

The banner URL of the gym.

description nullable string​

The description of the gym. This appears below the gym's name on the gym page and only applies to commercial gyms.

grades array​

The gym's grades, easiest first. A climb's grade is one of these.

hold_colors array​

The hold colors the gym uses for official climbs. An official climb's color is one of these.

icon_url nullable string​

The icon URL of the gym.

location nullable string​

The location of the gym.

name string​

The name of the gym.

number_of_climbers integer​

The number of distinct users who have used Crux at this gym.

number_of_sends integer​

The cumulative number of sends at this gym across all climbs, including unset climbs.

url_slug string​

The URL slug of the gym.

GymWall​

id integer​

An ID that uniquely identifies the resource across Crux.

angle_adjustable boolean​

Whether the wall has an adjustable angle.

created_at string​

Timestamp when the wall was created.

current_photo nullable WallPhoto​

The wall's current photo, which new climbs are set on. Its holds are at GET /api/v1/gym_walls/:id/holds. Null if the wall has no photo.

holds nullable ClimbHold​

Deprecated: use GET /api/v1/gym_walls/:id/holds, which returns the same holds without including them in every wall. List of predicted holds on the wall.

image_height nullable integer​

The height of the wall image in pixels.

image_url nullable string​

The URL of the wall's image.

image_width nullable integer​

The width of the wall image in pixels.

maximum_angle nullable integer​

Maximum wall angle in degrees.

minimum_angle nullable integer​

Minimum wall angle in degrees.

name string​

The name of the wall.

updated_at string​

Timestamp when the wall was last updated.

HoldMapping​

carried_forward boolean​

Whether Crux treats the matched holds as the same holds (enough of them matched): their usage carries over to this photo. The matches are returned either way.

computed_at string​

When the holds were matched. Editing either photo's holds matches them again.

holds HoldMappingHold​

Every hold on this photo, with the ID of the same hold on the previous photo when it was matched, or of the hold it replaced when it was swapped for it.

match_rate number​

How many of the holds matched, from 0 to 1: the matched holds divided by the hold count of whichever photo has fewer. A low rate usually means the wall was reset.

photo_id integer​

The wall photo.

previous_photo_id integer​

The wall's photo before this one, whose holds these are matched to.

removed_hold_ids array​

IDs of holds on the previous photo that weren't matched to any hold on this one (removed, swapped for a different hold, or not recognised).

HoldMappingHold​

id string​

The hold's ID on this photo, as in the photo's holds.

previous_id nullable string​

The same hold's ID on the previous photo. Null when the hold wasn't matched to one there (it's new, or wasn't recognised).

swapped_from_id nullable string​

When this hold replaced a different hold of similar shape in the same spot on the previous photo (for example a hold of another colour), that hold's ID on the previous photo. The two aren't matched, so previous_id is null. Null otherwise.

Send​

id integer​

An ID that uniquely identifies the resource across Crux.

attempts nullable integer​

How many attempts the send took, as the climber logged it (a flash is 1). Null when they didn't log it, which includes every repeat send from before repeats' attempts could be logged (November 2026).

created_at string​

Timestamp when the send was recorded.

repeat boolean​

Whether this was a repeat send of the climb.

send_date string​

The date of the session in which this send occurred.

user User​

The user who sent the climb.

Send (full)​

id integer​

An ID that uniquely identifies the resource across Crux.

attempts nullable integer​

How many attempts the send took, as the climber logged it (a flash is 1). Null when they didn't log it, which includes every repeat send from before repeats' attempts could be logged (November 2026).

created_at string​

Timestamp when the send was recorded.

repeat boolean​

Whether this was a repeat send of the climb.

send_date string​

The date of the session in which this send occurred.

climb Climb​

The climb that was sent.

user User​

The user who sent the climb.

User (authenticated)​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the user account was created.

name string​

The display name of the user, or 'Unknown' if the user has not set a name.

profile_image_url nullable string​

URL for the user's profile image.

administrated_gyms array Gym​

List of gyms where the user is an admin.

viewed_gyms array Gym​

List of gyms the user has viewed.

User​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the user account was created.

name string​

The display name of the user, or 'Unknown' if the user has not set a name.

profile_image_url nullable string​

URL for the user's profile image.

WallPhoto​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the photo was first used on Crux.

current boolean​

Whether this is the wall's current photo. When a wall is re-photographed, its old photo stays (climbs set on it are still drawn on it) but is no longer current.

height integer​

The height of the photo in pixels. Hold masks on this photo are in these pixels.

holds_carried_forward nullable boolean​

Whether Crux treats this photo's holds as the same holds as on previous_photo_id (enough of them matched): their usage carries over, and climbs set on the previous photo count on the holds they match here. Null without a previous photo.

image_url string​

The URL of the photo. The image may be smaller than width x height, but it has the same shape, so scale hold masks by the image's width divided by width.

match_rate nullable number​

How many of the holds matched between previous_photo_id and this photo, from 0 to 1: the matched holds divided by the hold count of whichever photo has fewer. A low rate usually means the wall was reset. Null without a previous photo.

next_photo_id nullable integer​

The photo that replaced this one on the wall, when Crux has matched this photo's holds to it. Null if there is none.

previous_photo_id nullable integer​

The wall's photo before this one, when Crux has matched its holds to this photo's (see GET /api/v1/wall_photos/:id/hold_mapping). Follow it back to see the wall's earlier photos. Null if there is none.

wall_id nullable integer​

The ID of the gym wall this is a photo of. Null for photos posted for climbs at the gym without picking a wall.

width integer​

The width of the photo in pixels. Hold masks on this photo are in these pixels.

WallPhoto (with_holds)​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the photo was first used on Crux.

current boolean​

Whether this is the wall's current photo. When a wall is re-photographed, its old photo stays (climbs set on it are still drawn on it) but is no longer current.

height integer​

The height of the photo in pixels. Hold masks on this photo are in these pixels.

holds ClimbHold​

The holds found on the photo. Empty if the photo was never scanned for holds.

holds_carried_forward nullable boolean​

Whether Crux treats this photo's holds as the same holds as on previous_photo_id (enough of them matched): their usage carries over, and climbs set on the previous photo count on the holds they match here. Null without a previous photo.

image_url string​

The URL of the photo. The image may be smaller than width x height, but it has the same shape, so scale hold masks by the image's width divided by width.

match_rate nullable number​

How many of the holds matched between previous_photo_id and this photo, from 0 to 1: the matched holds divided by the hold count of whichever photo has fewer. A low rate usually means the wall was reset. Null without a previous photo.

next_photo_id nullable integer​

The photo that replaced this one on the wall, when Crux has matched this photo's holds to it. Null if there is none.

previous_photo_id nullable integer​

The wall's photo before this one, when Crux has matched its holds to this photo's (see GET /api/v1/wall_photos/:id/hold_mapping). Follow it back to see the wall's earlier photos. Null if there is none.

wall_id nullable integer​

The ID of the gym wall this is a photo of. Null for photos posted for climbs at the gym without picking a wall.

width integer​

The width of the photo in pixels. Hold masks on this photo are in these pixels.

WebhookDelivery​

id integer​

An ID that uniquely identifies the resource across Crux.

created_at string​

Timestamp when the webhook delivery was scheduled.

delivered_at nullable string​

Timestamp when the webhook delivery was delivered.

error nullable string​

Error message if the delivery failed.

payload object​

Parsed JSON payload that was delivered.

status string​

Status of the webhook delivery. One of [success, failure, pending, retrying]

webhook_registration WebhookRegistration​

The webhook registration associated with this delivery.

WebhookRegistration​

id integer​

An ID that uniquely identifies the resource across Crux.

event_type string​

The type of event that triggers the webhook.

gym_url_slug nullable string​

The slug of the gym whose events this webhook gets (only present if scope_type is Gym).

owner_id integer​

ID of the resource that owns this webhook registratiom.

owner_type string​

Type of the owner resource. One of [Gym, User]

scope_type string​

Where the webhook's events come from. One of [Gym, User]. Gym webhooks get a gym's events (the gym's own webhooks, and users' webhooks for a gym); User webhooks get their owner's own events.

url string​

The endpoint URL where webhooks will be delivered.

WebhookRegistration (full)​

id integer​

An ID that uniquely identifies the resource across Crux.

event_type string​

The type of event that triggers the webhook.

gym_url_slug nullable string​

The slug of the gym whose events this webhook gets (only present if scope_type is Gym).

owner_id integer​

ID of the resource that owns this webhook registratiom.

owner_type string​

Type of the owner resource. One of [Gym, User]

scope_type string​

Where the webhook's events come from. One of [Gym, User]. Gym webhooks get a gym's events (the gym's own webhooks, and users' webhooks for a gym); User webhooks get their owner's own events.

signing_secret string​

The secret this registration's deliveries are signed with. Each delivery has an X-Crux-Signature: t=<unix time>,v1=<signature> header, where the signature is the hex HMAC-SHA256 of <t>.<raw request body> keyed with this secret. Recompute it to check a delivery came from Crux, and reject old timestamps to stop replays.

url string​

The endpoint URL where webhooks will be delivered.

recent_deliveries array WebhookDelivery​

The 10 most recent webhook deliveries for this registration.