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

# Hireflix API documentation for developers

> Build one-way video interviews into your product with the Hireflix GraphQL API: get an API key, try queries in the Dev Playground, and set up webhooks.

Get your **[API key](https://docs.hireflix.com/user/getting-started/key-concepts.md#api-key)** to start **using the Hireflix API** and learn **how to use the Hireflix Dev Playground** for quick experimentation without writing any code.

> [card] [Learn how Hireflix works](https://docs.hireflix.com/tech/features/overview.md)
>
> From positions to invites to reviewing interviews: see how each part of the API fits into the hiring flow.

> [card] [Start here](https://docs.hireflix.com/tech/quickstart.md)
>
> Follow our three-step quickstart guide.

> [card] [Open the Hireflix Dev Playground](https://cdn.hireflix.com/graphql-playground/index.html)
>
> Run any query or mutation against your own account in the browser, without writing code. You only need your API key.

> [card] [Build with AI](#build-with-ai)
>
> Connect Claude, Cursor, VS Code, or another AI tool to your Hireflix account in one click, no API key needed.

> [card] [Understanding GraphQL Basics](https://docs.hireflix.com/tech/graphql-basics.md)
>
> The Hireflix API is built using GraphQL, a modern query language for APIs.

## Build with AI

Connect Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex, or another AI tool to your Hireflix account with the **Hireflix MCP server**. You sign in with your Hireflix account, so you don't need an API key. Pick your tool and follow the steps.

> [card] [Hireflix and AI](https://docs.hireflix.com/ai/overview.md)
>
> Everything about using AI tools with Hireflix: MCP or skill, setup per tool, and guides.

> [card] [Hireflix MCP](https://docs.hireflix.com/ai/mcp.md)
>
> Full tutorial with screenshots, the list of available tools, and example prompts.

> [card] [Hireflix skill](https://docs.hireflix.com/ai/skill.md)
>
> Give your AI tool the GraphQL schema and examples, and let it write and run queries with your API key.

> [card] [Example prompts](https://docs.hireflix.com/ai/guides/example-prompts.md)
>
> Copy-paste prompts to test your connection and explore your account.

## Workflow Guides

Explore the different features Hireflix offers.

> [card] [Position Management](https://docs.hireflix.com/tech/features/overview.md#position-management)
>
> Fetch, update, archive, or delete positions.

> [card] [Interview Management](https://docs.hireflix.com/tech/features/overview.md#interview-flow)
>
> Invite candidates, fetch or score interviews, ...

> [card] [Webhooks](https://docs.hireflix.com/tech/webhooks/getting-started.md)
>
> Learn how you can react to Hireflix events.

## Frequent Questions

> [card] [Can I embed Hireflix on my website or app?](https://docs.hireflix.com/tech/faqs/can-i-embed-hireflix.md)
>
> Yes, you can embed a Hireflix Interview using an iFrame, customize its appearance, listen for events like "interview\.finished", and even skip the intro screen for a seamless candidate experience.

> [card] [How to Format GraphQL Queries as a One-Line Web Payload?](https://docs.hireflix.com/tech/faqs/how-convert-query-one-line-format.md)
>
> When sending GraphQL requests through web-based clients or tools, the `query` field must be a **valid JSON string**. That means the entire GraphQL query must be on **one line**, and all double quotes `"` inside the query need to be **escaped** (e.g., `\"`). This ensures the JSON remains valid and can be parsed correctly.

> [card] [Can I re-invite a candidate for a position?](https://docs.hireflix.com/tech/faqs/can-i-reinvite-candidate.md)
>
> In Hireflix, each email can only be invited once per position. If you need to re-invite the same candidate, you must first delete the existing interview.

> [card] [Can I allow my users to build interviews in my ATS instead of Hireflix?](https://docs.hireflix.com/tech/faqs/build-interviews-in-own-ats.md)
>
> Yes, but it's not recommended. This makes the integration much more complex. It is better for interviews to be created in Hireflix since our whole UI is already optimized for integration with Hireflix.

> [card] [How can I fetch my account logs?](https://docs.hireflix.com/tech/faqs/fetch-account-logs.md)
>
> Use the Hireflix API to retrieve recent account activity, such as user actions, timestamps, and IPs. The logs cover the last two months and can be paginated using skip and limit.

> [card] [How can I prefill parameters to public interview links?](https://docs.hireflix.com/tech/faqs/add-params-to-public-interview.md)
>
> Learn how to pass candidate information (like name, email, or phone) through URL parameters in a Hireflix public interview link. This lets candidates skip manual input, which is ideal when redirecting them from your own form or onboarding flow.

> [card] [Is there a mutation to search for a candidate within my account?](https://docs.hireflix.com/tech/faqs/can-i-search-for-a-candidate-within-my-account.md)
>
> Yes. You can search for candidates using the `interviewList` query on a specific position. This allows you to filter by email, name, and combine conditions using `AND/OR` logic. The response returns a list of interviews, and you can choose exactly which fields to retrieve (e.g., interview ID, candidate email, etc.).

> [card] Can I add or remove users programmatically through the API?
>
> **Yes.** You can manage users via GraphQL mutations, allowing you to add or remove company members programmatically.
>
> **Add a User**
>
> ```
> mutation {
>   Company {
>     Member {
>       add(email: "the-candidate-email")
>     }
>   }
> }
> ```
>
> **Remove a User**
>
> ```
> mutation {
>   Company {
>     Member {
>       remove(id: "user-id-here", email: "the-candidate-email")
>     }
>   }
> }
> ```

> [card] [Can I fetch the IP address, User Agent, and interview thumbnails through the API?](https://docs.hireflix.com/tech/faqs/fetch-ip-user-agent-thumbnail.md)
>
> **Yes,** all requests must be **authenticated** using your **API key**. You can retrieve:
>
> * All IP addresses used during the interview
> * User agents
> * Interview thumbnail links

> [card] [Can I retrieve a candidate’s location from their IP address using the API?](https://docs.hireflix.com/tech/faqs/retrieve-candidate-location-ip.md)
>
> **Yes.** You can retrieve a candidate’s geolocation data (derived from their IP address) through the API.
>
> ⚠️ **Important:**\
> Location data is based on IP detection. If a candidate is using a **VPN or proxy**, the returned location may not reflect their real physical location.

> [card] I am getting an error "Field X of type Y must have a selection of subfields"
>
> In GraphQL, mutation queries always expect a return. For example, the [invite a candidate](https://docs.hireflix.com/tech/features/interviews/inviting-candidate.md) mutation fails if you don't specify return fields.

> [card] Which errors does the Hireflix API return?
>
> The Hireflix API follows the **GraphQL error model**, meaning requests always return an **HTTP 200 OK** response, even when an error occurs. Instead of relying on status codes, you should inspect either:
>
> * The `errors` array (for most mutations and queries) or
> * The `__typename` field (for union-type mutations that encode errors as types).
>
> Usually, a **code 400** indicates a bad request and a **code 500** indicates an internal server error.

> [card] [I’m integrating Hireflix into my iOS app using a WebView. Why do I see errors like “Open this on Safari” or “Your camera or microphone is not working”?](https://docs.hireflix.com/tech/faqs/ios-app-webview.md)
>
> When integrating Hireflix inside an **iOS WebView (WKWebView)**, you may encounter one of the following issues:
>
> * **“Open this on Safari”**
> * **“Your camera or microphone is not working”**
>
> These issues are related to how iOS handles WebViews and media permissions. Click on this card to learn more about how to solve this issue.


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