### Example Team Profile Response (JSON) Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index An example JSON response for the 'Get Team Profile' endpoint. It includes detailed information about the team, its members, and its attributes. ```json { "id": 2102, "name": "CommandlineKings", "points": 1839, "motto": "Hacking for the fun of it! Learning it as a bonus", "description": "Open for anyone who is: \r\n* polite\r\n* honest\r\n* nice \r\n* willing to help others.", "country_name": "Netherlands", "country_code": "NL", "avatar_url": "https://www.hackthebox.eu/storage/teams/8232e119d8f59aa83050a741631803a6.jpg", "cover_image_url": null, "is_respected": true, "twitter": null, "facebook": null, "discord": null, "public": true, "can_delete_avatar": true, "captain": { "id": 7383, "name": "sx02089" } } ``` -------------------------------- ### GET /api/v4/team/info/{teamId} Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index Retrieves the profile information for a specific team, including its captain, motto, and other attributes. ```APIDOC ## GET /api/v4/team/info/{teamId} ### Description Retrieve the information profile for a team including captain, motto and other attributes. ### Method GET ### Endpoint `https://www.hackthebox.com/api/v4/team/info/{teamId}` ### Parameters #### Path Parameters - **teamId** (integer) - Required - The unique identifier of the team. ### Request Example ```bash curl --location 'https://www.hackthebox.com/api/v4/team/info/2102' ``` ### Response #### Success Response (200) - **id** (integer) - The unique identifier of the team. - **name** (string) - The name of the team. - **points** (integer) - The current points of the team. - **motto** (string) - The team's motto. - **description** (string) - A description of the team. - **country_name** (string) - The name of the team's country. - **country_code** (string) - The country code of the team's country. - **avatar_url** (string) - The URL of the team's avatar. - **cover_image_url** (string) - The URL of the team's cover image (can be null). - **is_respected** (boolean) - Indicates if the team is respected. - **twitter** (string) - The team's Twitter handle (can be null). - **facebook** (string) - The team's Facebook handle (can be null). - **discord** (string) - The team's Discord handle (can be null). - **public** (boolean) - Indicates if the team is public. - **can_delete_avatar** (boolean) - Indicates if the team can delete its avatar. - **captain** (object) - An object containing information about the team captain. - **id** (integer) - The unique identifier of the captain. - **name** (string) - The name of the captain. #### Response Example ```json { "id": 2102, "name": "CommandlineKings", "points": 1839, "motto": "Hacking for the fun of it! Learning it as a bonus", "description": "Open for anyone who is: \r\n* polite\r\n* honest\r\n* nice \r\n* willing to help others.", "country_name": "Netherlands", "country_code": "NL", "avatar_url": "https://www.hackthebox.eu/storage/teams/8232e119d8f59aa83050a741631803a6.jpg", "cover_image_url": null, "is_respected": true, "twitter": null, "facebook": null, "discord": null, "public": true, "can_delete_avatar": true, "captain": { "id": 7383, "name": "sx02089" } } ``` ``` -------------------------------- ### Sample JSON Response for Team Activity Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index This is a sample JSON response for the 'Get Recent Team Activity' API endpoint. It contains an array of objects, each representing a team activity with details like date, type, object name, and points. ```json [ { "date": "2020-11-17T12:03:13.000000Z", "date_diff": "43 minutes ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 20, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-17T08:40:31.000000Z", "date_diff": "4 hours ago", "type": "challenge", "first_blood": false, "object_type": "challenge", "id": 133, "name": "The secret of a Queen", "points": 1, "challenge_category": "Misc" }, { "date": "2020-11-17T08:26:37.000000Z", "date_diff": "4 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 267, "name": "OpenKeyS", "points": 30, "machine_avatar": "/storage/avatars/792cdcf6434dad849ef37c4ab16bd68b_thumb.png" }, { "date": "2020-11-17T08:13:23.000000Z", "date_diff": "4 hours ago", "type": "challenge", "first_blood": false, "object_type": "challenge", "id": 53, "name": "Old Bridge", "points": 8, "challenge_category": "Pwn" }, { "date": "2020-11-17T08:06:23.000000Z", "date_diff": "4 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 275, "name": "Passage", "points": 30, "machine_avatar": "/storage/avatars/ec88bbe570fd512ab370208e5139bb41_thumb.png" }, { "date": "2020-11-17T07:48:38.000000Z", "date_diff": "4 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 275, "name": "Passage", "points": 15, "machine_avatar": "/storage/avatars/ec88bbe570fd512ab370208e5139bb41_thumb.png" }, { "date": "2020-11-17T00:06:00.000000Z", "date_diff": "12 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 10, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-16T23:39:17.000000Z", "date_diff": "13 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 20, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-16T23:10:42.000000Z", "date_diff": "13 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 10, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-16T21:12:48.000000Z", "date_diff": "15 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 283, "name": "Bucket", "points": 30, "machine_avatar": "/storage/avatars/3f07dd46f3ff7d287d2f736b18c6ded7_thumb.png" }, { "date": "2020-11-16T20:44:18.000000Z", "date_diff": "16 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 297, "name": "Academy", "points": 20, "machine_avatar": "/storage/avatars/10c8da0b46f53c882da946668dcdab95_thumb.png" }, { "date": "2020-11-16T20:44:11.000000Z", "date_diff": "16 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 297, "name": "Academy", "points": 10, "machine_avatar": "/storage/avatars/10c8da0b46f53c882da946668dcdab95_thumb.png" }, { "date": "2020-11-16T20:33:58.000000Z", "date_diff": "16 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 10, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-16T20:33:44.000000Z", "date_diff": "16 hours ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 20, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" }, { "date": "2020-11-16T19:41:36.000000Z", "date_diff": "17 hours ago", "type": "user", "first_blood": false, "object_type": "machine", "id": 297, "name": "Academy", "points": 10, "machine_avatar": "/storage/avatars/10c8da0b46f53c882da946668dcdab95_thumb.png" } ] ``` -------------------------------- ### GET /api/v4/team/activity/{teamId} Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index Retrieves a list of recent team activities, such as machine owns and challenge completions. This endpoint does not specify which team member achieved each item. ```APIDOC ## GET /api/v4/team/activity/{teamId} ### Description Retrieve a handful of recent team owns. (Does not indicate which member achieved each item) ### Method GET ### Endpoint https://www.hackthebox.com/api/v4/team/activity/{teamId} ### Parameters #### Path Parameters - **teamId** (integer) - Required - The ID of the team to retrieve activity for. #### Query Parameters None #### Request Body None ### Request Example ```bash curl --location 'https://www.hackthebox.com/api/v4/team/activity/2102' ``` ### Response #### Success Response (200) - **date** (string) - The timestamp when the activity occurred. - **date_diff** (string) - A human-readable difference from the current time. - **type** (string) - The type of activity (e.g., 'root', 'challenge', 'user'). - **first_blood** (boolean) - Indicates if this was a first blood. - **object_type** (string) - The type of object associated with the activity (e.g., 'machine', 'challenge'). - **id** (integer) - The ID of the object. - **name** (string) - The name of the object. - **points** (integer) - The points awarded for the activity. - **machine_avatar** (string, optional) - The URL of the machine's avatar. - **challenge_category** (string, optional) - The category of the challenge. #### Response Example ```json [ { "date": "2020-11-17T12:03:13.000000Z", "date_diff": "43 minutes ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 20, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" } ] ``` ``` -------------------------------- ### Get Recent Team Activity (cURL) Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index This snippet demonstrates how to fetch recent team activity using a cURL command. It requires the team ID as a path parameter and uses a Bearer Token for authorization. The output is a JSON array of activity objects. ```curl curl --location 'https://www.hackthebox.com/api/v4/team/activity/2102' ``` -------------------------------- ### Get Team Profile using cURL Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index Retrieves the profile information for a specific team using a cURL command. This endpoint requires an API token for authentication and returns team details such as name, points, motto, and captain. ```curl curl --location 'https://www.hackthebox.com/api/v4/team/info/2102' ``` -------------------------------- ### API Response Headers Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index This section outlines the HTTP headers returned with the API response. Key headers include 'Content-Type' indicating JSON, 'Cache-Control' settings, security headers like 'X-Frame-Options' and 'Strict-Transport-Security', and server information from Cloudflare. ```http Date: Tue, 17 Nov 2020 12:46:17 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding Cache-Control: no-cache, private X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Access-Control-Allow-Origin: https://app.hackthebox.eu Access-Control-Allow-Credentials: true Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS Access-Control-Allow-Headers: Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With Content-Encoding: gzip CF-Cache-Status: DYNAMIC cf-request-id: 0677d6e0ae0000219f450e9000000001 Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" Strict-Transport-Security: max-age=0; includeSubDomains Server: cloudflare CF-RAY: 5f398dadef4a219f-DUS ``` -------------------------------- ### JSON Machine Data Structure Source: https://documenter.getpostman.com/view/13129365/TVeqbmeq/index This snippet shows the typical structure of a machine object within the JSON response. It includes fields like 'date', 'object_type', 'id', 'name', and 'machine_avatar'. The 'type' field indicates whether the entry is from a 'root' or 'user' context. ```json { "date": "2020-11-14T21:37:45.000000Z", "date_diff": "2 days ago", "type": "root", "first_blood": false, "object_type": "machine", "id": 298, "name": "Laboratory", "points": 20, "machine_avatar": "/storage/avatars/97b6b79de818229932e1d9d645b50f62_thumb.png" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.