Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to HackerRank Work

Scalekit connector
Open markdown

The HackerRank Work connector lets your AI agent act in each user's HackerRank Work account. Each user connects their own HackerRank Work access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 36 tools.

Tools
36
What they doRead · write · destructive
25 · 9 · 225 read9 write2 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the HackerRank Work connection

    In AgentKit > Connections, create a HackerRank Work connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'hackerrankwork'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize HackerRank Work:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'hackerrankwork_list_audit_logs',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their HackerRank Work credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • hackerrankwork_get_candidate_report_pdfGet the PDF score report for a test candidate as a download URL.Read-only

    Get Candidate Report PDF

    Get the PDF score report for a test candidate as a download URL. Returns the location of the candidate's PDF report (requested with format=url). HackerRank answers 503 while the PDF is still being generated; retry after a short wait. Use hackerrankwork_get_candidate_report_pdf once a candidate has finished; use hackerrankwork_get_test_candidate for scores as data.

    Inputs

    candidate_idstringrequired
    ID of the candidate whose report to fetch.
    test_idstringrequired
    ID of the test the candidate attempted.
  • hackerrankwork_get_interviewRetrieve one live coding interview by id.Read-only

    Get Interview

    Retrieve one live coding interview by id. Returns the interview's id, title, status, scheduled and actual times, url, owner, interviewers, candidate, notes, feedback, thumbs_up, report_url, metadata and template id. Use hackerrankwork_get_interview for one interview; use hackerrankwork_get_interview_transcript for its transcript.

    Inputs

    interview_idstringrequired
    ID of the interview, as returned by hackerrankwork_list_interviews.
  • hackerrankwork_get_interview_templateRetrieve one interview template by id.Read-only

    Get Interview Template

    Retrieve one interview template by id. Returns the template's id, name, status, owner, roles, questions, scorecard, sharing and editor access. Use hackerrankwork_get_interview_template for one template; use hackerrankwork_list_interview_templates to browse.

    Inputs

    template_idintegerrequired
    ID of the interview template, as returned by hackerrankwork_list_interview_templates.
  • hackerrankwork_get_interview_transcriptRetrieve the transcript of a live coding interview.Read-only

    Get Interview Transcript

    Retrieve the transcript of a live coding interview. Returns a messages list with the recorded conversation. Use hackerrankwork_get_interview_transcript after the interview has run; use hackerrankwork_get_interview for its metadata and feedback.

    Inputs

    interview_idstringrequired
    ID of the interview whose transcript to fetch.
  • hackerrankwork_get_invite_templateRetrieve one candidate invitation email template by id.Read-only

    Get Invite Template

    Retrieve one candidate invitation email template by id. Returns the template's id, name, subject, content, default flag, timestamps and owner. Use hackerrankwork_get_invite_template to view a template; use hackerrankwork_list_invite_templates to find ids.

    Inputs

    template_idstringrequired
    ID of the invite template, as returned by hackerrankwork_list_invite_templates.
  • hackerrankwork_get_questionRetrieve one question from the question bank by id.Read-only

    Get Question

    Retrieve one question from the question bank by id. Returns the question's id, unique_id, type, name, owner, status, languages, problem statement, recommended duration, tags, max_score, options and answer. Use hackerrankwork_get_question for the full content of one question; use hackerrankwork_list_questions to find ids.

    Inputs

    question_idstringrequired
    ID of the question, as returned by hackerrankwork_list_questions.
  • hackerrankwork_get_teamRetrieve one team by id.Read-only

    Get Team

    Retrieve one team by id. Returns the team's id, name, owner, created_at, recruiter and developer counts and caps, invite_as, locations and departments. Use hackerrankwork_get_team for one team; use hackerrankwork_list_teams to find ids.

    Inputs

    team_idstringrequired
    ID of the team, as returned by hackerrankwork_list_teams.
  • hackerrankwork_get_team_membershipCheck whether a user belongs to a team and retrieve the membership.Read-only

    Get Team Membership

    Check whether a user belongs to a team and retrieve the membership. Returns the membership record with the team and the user. Use hackerrankwork_get_team_membership to confirm one user's membership; use hackerrankwork_list_team_members for the whole roster.

    Inputs

    team_idstringrequired
    ID of the team.
    user_idstringrequired
    ID of the user.