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:β
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:β
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:β
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:β
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:β
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:β
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:β
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:β
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:β
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:β
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.activatedwebhook, andclimb.deactivatedfor 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:β
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.deactivatedwebhook 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:β
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:β
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
widthxheightpixels. This is the same asGET /api/v1/wall_photos/:id/holdsfor 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:β
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 inunknown_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.idis a hold ID from the photo's holds.typeis one of [hand, hand_l, hand_r, foot, foot_l, foot_r, start, finish, zone]. Optionally addcircuit_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 examplefeet_follow_hands). Leave it out for the standard rules. This parameter is optional.
no_matchingβSet to
trueif hands can't match on any hold except the start and finish holds, orfalseif they can. Defaults to the gym's setting for new climbs (usuallyfalse). 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
trueto save the climb as a draft, visible only to you. Defaults tofalse. This parameter is optional.
officialβSet to
trueto create an official climb instead of a custom climb. Requirescolor. 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:β
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:β
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:β
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:β
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:β
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:β
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 theclimb.sentwebhooks. 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:β
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:β
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:β
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:β
GET /api/v1/wall_photos/:id/holdsβ
Returns the holds on a wall photo. Hold masks are in the photo's
widthxheightpixels, and each hold'sidmatches 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:β
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_idandnext_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:β
POST /api/v1/webhook_registrationsβ
Registers a webhook owned by you. Without
gym_slugit gets your own events (user events:climb.sent,climb.created,climb.viewed). Withgym_slugit 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 itssigning_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 withoutgym_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:β
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:β
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β
idintegerβAn ID that uniquely identifies the resource across Crux.
anglenullable integerβThe angle this climb was set at. Only for climbs on adjustable walls.
colornullable stringβThe color of the climb. Only for official climbs in commercial gyms.
created_atstringβWhen the climb was created.
descriptionnullable stringβOptional climber-provided description of the climb.
foot_rulesnullable 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_namenullable 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.
gradenullable stringβThe grade of the climb. This will be one of the gym's available grades.
image_heightnullable integerβHeight of the climb's image in pixels (after cropping).
image_urlnullable 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_widthnullable integerβWidth of the climb's image in pixels (after cropping).
namestringβThe name of the climb.
no_matchingbooleanβWhether the climb is "no matching": hands can't match on any hold except the start and finish holds.
number_of_commentsintegerβThe number of comments on this climb.
number_of_sendsintegerβThe number of times this climb has been sent.
unedited_image_urlnullable stringβThe original uploaded image URL, before hold highlights.
unset_atnullable stringβWhen the climb was marked as unset (removed from the wall).
updated_atstringβWhen the climb was last updated.
Climb (full)β
idintegerβAn ID that uniquely identifies the resource across Crux.
anglenullable integerβThe angle this climb was set at. Only for climbs on adjustable walls.
colornullable stringβThe color of the climb. Only for official climbs in commercial gyms.
created_atstringβWhen the climb was created.
descriptionnullable stringβOptional climber-provided description of the climb.
foot_rulesnullable 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_namenullable 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.
gradenullable stringβThe grade of the climb. This will be one of the gym's available grades.
gym_namestringβThe name of the gym where the climb is located.
gym_slugstringβThe URL slug of the gym where the climb is located.
holdsClimbHold (on_climb)βList of holds in the climb.
image_heightnullable integerβHeight of the climb's image in pixels (after cropping).
image_urlnullable 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_widthnullable integerβWidth of the climb's image in pixels (after cropping).
namestringβThe name of the climb.
no_matchingbooleanβWhether the climb is "no matching": hands can't match on any hold except the start and finish holds.
number_of_commentsintegerβThe number of comments on this climb.
number_of_sendsintegerβThe number of times this climb has been sent.
photonullable objectβThe photo the climb is drawn on:
{ id, width, height }. Its holds are atGET /api/v1/wall_photos/:id/holds, and the climb'sphoto_masks are in its pixels. Null for climbs without a photo.
setter_idnullable integerβUser ID of the setter (custom climbs only).
setter_namenullable stringβName of the setter who posted the climb (custom climbs only).
unedited_image_urlnullable stringβThe original uploaded image URL, before hold highlights.
unset_atnullable stringβWhen the climb was marked as unset (removed from the wall).
updated_atstringβWhen the climb was last updated.
wall_idnullable integerβThe ID of the wall this climb is on. Returns null if the climb is not set on a wall.
sendsarray SendβList of sends for this climb.
ClimbCommentβ
idintegerβAn ID that uniquely identifies the resource across Crux.
bodynullable stringβThe text of the comment.
climb_idintegerβThe ID of the climb the comment is on.
created_atstringβTimestamp when the comment was posted.
userUserβThe user who posted the comment.
ClimbDrawingβ
colornullable stringβThe hex color code of the drawing (e.g. '#FF0000').
pointsarrayβAn array of coordinate pairs [[x, y], ...] that form the drawing path. Coordinates are relative to the climb image dimensions.
typestringβThe type of drawing modification. Always 'draw'.
ClimbHoldβ
idnullable 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.
maskarrayβ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
widthxheightpixels. In a wall'sholds, they're in the wall'simage_widthximage_heightpixels. In a climb's holds, they're in the pixels of the image the climb was marked up on, before cropping; usephoto_maskinstead.
ClimbHold (on_climb)β
circuit_numbersarrayβCircuit identifiers applied to this hold. Empty when the climb is not part of a circuit.
hold_typestringβThe type of hold. One of [hand, hand_l, hand_r, foot, foot_l, foot_r, start, finish, zone]
idnullable 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.
maskarrayβ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
widthxheightpixels. In a wall'sholds, they're in the wall'simage_widthximage_heightpixels. In a climb's holds, they're in the pixels of the image the climb was marked up on, before cropping; usephoto_maskinstead.
photo_masknullable arrayβThe outline of the hold in the pixels of the climb's
photo(widthxheight), the same as in the photo's holds. Null if the climb has no photo.
ClimbListβ
idintegerβAn ID that uniquely identifies the resource across Crux.
climb_countintegerβThe number of climbs in the list.
created_atstringβTimestamp when the list was created.
iconstringβIcon for this list. A single emoji.
namestringβThe name of the climb list.
owned_by_gymbooleanβWhether this list is owned by the gym. Gym-owned lists can be edited by all gym staff.
pinned_atnullable stringβTimestamp when the list was pinned (if applicable).
gymnullable GymβThe gym that owns this list, if the list is gym-owned.
ownernullable UserβThe user who owns the list, if the list is not gym-owned.
ClimbList (full)β
idintegerβAn ID that uniquely identifies the resource across Crux.
climb_countintegerβThe number of climbs in the list.
created_atstringβTimestamp when the list was created.
iconstringβIcon for this list. A single emoji.
namestringβThe name of the climb list.
owned_by_gymbooleanβWhether this list is owned by the gym. Gym-owned lists can be edited by all gym staff.
pinned_atnullable stringβTimestamp when the list was pinned (if applicable).
climbsarray ClimbβAll climbs in this list.
gymnullable GymβThe gym that owns this list, if the list is gym-owned.
ownernullable UserβThe user who owns the list, if the list is not gym-owned.
ClimbSessionβ
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the session was created.
datestringβ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.
sendsarray Send (full)βList of sends during the session.
Emptyβ
Gymβ
idintegerβAn ID that uniquely identifies the resource across Crux.
banner_urlnullable stringβThe banner URL of the gym.
descriptionnullable stringβThe description of the gym. This appears below the gym's name on the gym page and only applies to commercial gyms.
gradesarrayβThe gym's grades, easiest first. A climb's
gradeis one of these.
hold_colorsarrayβThe hold colors the gym uses for official climbs. An official climb's
coloris one of these.
icon_urlnullable stringβThe icon URL of the gym.
locationnullable stringβThe location of the gym.
namestringβThe name of the gym.
number_of_climbersintegerβThe number of distinct users who have used Crux at this gym.
number_of_sendsintegerβThe cumulative number of sends at this gym across all climbs, including unset climbs.
url_slugstringβThe URL slug of the gym.
GymWallβ
idintegerβAn ID that uniquely identifies the resource across Crux.
angle_adjustablebooleanβWhether the wall has an adjustable angle.
created_atstringβTimestamp when the wall was created.
current_photonullable 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.
holdsnullable 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_heightnullable integerβThe height of the wall image in pixels.
image_urlnullable stringβThe URL of the wall's image.
image_widthnullable integerβThe width of the wall image in pixels.
maximum_anglenullable integerβMaximum wall angle in degrees.
minimum_anglenullable integerβMinimum wall angle in degrees.
namestringβThe name of the wall.
updated_atstringβTimestamp when the wall was last updated.
HoldMappingβ
carried_forwardbooleanβ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_atstringβWhen the holds were matched. Editing either photo's holds matches them again.
holdsHoldMappingHoldβ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_ratenumberβ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_idintegerβThe wall photo.
previous_photo_idintegerβThe wall's photo before this one, whose holds these are matched to.
removed_hold_idsarrayβ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β
idstringβThe hold's ID on this photo, as in the photo's holds.
previous_idnullable 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_idnullable 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β
idintegerβAn ID that uniquely identifies the resource across Crux.
attemptsnullable 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_atstringβTimestamp when the send was recorded.
repeatbooleanβWhether this was a repeat send of the climb.
send_datestringβThe date of the session in which this send occurred.
userUserβThe user who sent the climb.
Send (full)β
idintegerβAn ID that uniquely identifies the resource across Crux.
attemptsnullable 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_atstringβTimestamp when the send was recorded.
repeatbooleanβWhether this was a repeat send of the climb.
send_datestringβThe date of the session in which this send occurred.
climbClimbβThe climb that was sent.
userUserβThe user who sent the climb.
User (authenticated)β
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the user account was created.
namestringβThe display name of the user, or 'Unknown' if the user has not set a name.
profile_image_urlnullable stringβURL for the user's profile image.
administrated_gymsarray GymβList of gyms where the user is an admin.
viewed_gymsarray GymβList of gyms the user has viewed.
Userβ
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the user account was created.
namestringβThe display name of the user, or 'Unknown' if the user has not set a name.
profile_image_urlnullable stringβURL for the user's profile image.
WallPhotoβ
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the photo was first used on Crux.
currentbooleanβ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.
heightintegerβThe height of the photo in pixels. Hold masks on this photo are in these pixels.
holds_carried_forwardnullable 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_urlstringβThe URL of the photo. The image may be smaller than
widthxheight, but it has the same shape, so scale hold masks by the image's width divided bywidth.
match_ratenullable numberβHow many of the holds matched between
previous_photo_idand 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_idnullable 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_idnullable 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_idnullable 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.
widthintegerβThe width of the photo in pixels. Hold masks on this photo are in these pixels.
WallPhoto (with_holds)β
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the photo was first used on Crux.
currentbooleanβ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.
heightintegerβThe height of the photo in pixels. Hold masks on this photo are in these pixels.
holdsClimbHoldβThe holds found on the photo. Empty if the photo was never scanned for holds.
holds_carried_forwardnullable 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_urlstringβThe URL of the photo. The image may be smaller than
widthxheight, but it has the same shape, so scale hold masks by the image's width divided bywidth.
match_ratenullable numberβHow many of the holds matched between
previous_photo_idand 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_idnullable 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_idnullable 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_idnullable 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.
widthintegerβThe width of the photo in pixels. Hold masks on this photo are in these pixels.
WebhookDeliveryβ
idintegerβAn ID that uniquely identifies the resource across Crux.
created_atstringβTimestamp when the webhook delivery was scheduled.
delivered_atnullable stringβTimestamp when the webhook delivery was delivered.
errornullable stringβError message if the delivery failed.
payloadobjectβParsed JSON payload that was delivered.
statusstringβStatus of the webhook delivery. One of [success, failure, pending, retrying]
webhook_registrationWebhookRegistrationβThe webhook registration associated with this delivery.
WebhookRegistrationβ
idintegerβAn ID that uniquely identifies the resource across Crux.
event_typestringβThe type of event that triggers the webhook.
gym_url_slugnullable stringβThe slug of the gym whose events this webhook gets (only present if scope_type is Gym).
owner_idintegerβID of the resource that owns this webhook registratiom.
owner_typestringβType of the owner resource. One of [Gym, User]
scope_typestringβWhere the webhook's events come from. One of [Gym, User].
Gymwebhooks get a gym's events (the gym's own webhooks, and users' webhooks for a gym);Userwebhooks get their owner's own events.
urlstringβThe endpoint URL where webhooks will be delivered.
WebhookRegistration (full)β
idintegerβAn ID that uniquely identifies the resource across Crux.
event_typestringβThe type of event that triggers the webhook.
gym_url_slugnullable stringβThe slug of the gym whose events this webhook gets (only present if scope_type is Gym).
owner_idintegerβID of the resource that owns this webhook registratiom.
owner_typestringβType of the owner resource. One of [Gym, User]
scope_typestringβWhere the webhook's events come from. One of [Gym, User].
Gymwebhooks get a gym's events (the gym's own webhooks, and users' webhooks for a gym);Userwebhooks get their owner's own events.
signing_secretstringβ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.
urlstringβThe endpoint URL where webhooks will be delivered.
recent_deliveriesarray WebhookDeliveryβThe 10 most recent webhook deliveries for this registration.