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

# GETTOKEN (new stack)

Generates single-use SHA-256 tokens on the `resdefio.com` stack for ACTIVITY. Set `api` to the product the token is for and `tokens` to the number of tokens (1–10). `panel_id` and `hashed_email` bind the token to a known respondent when available.

For tokens used with SEARCH and REVIEW (V3), use [GETTOKEN](/research-defender/endpoints/get-api-v3-respondents-get_token-publishable_key) on `rtymgt.com`.


## OpenAPI

````yaml GET /token
openapi: 3.0.3
info:
  title: Research Defender API
  version: 1.0.0
  description: >-
    Research Defender protects survey data quality through digital
    fingerprinting, duplication detection, and open-end text analysis. This
    reference covers the **SEARCH**, **REVIEW**, and **PREDUPE** products.


    > ACTIVITY and VERIFY are hosted on a separate domain (resdefio.com) and are
    documented separately.


    ## Authentication


    Client-side calls (SEARCH, REVIEW, GETTOKEN) use your **publishable key** in
    the URL path. Server-side lookups (destination_platforms) use your **private
    key**. For enhanced protection, use V3 server-to-server tokens (GETTOKEN) or
    V4 Hashed Validation.


    ## Environments


    Production: `https://prod.rtymgt.com`  

    Staging: `https://staging.rtymgt.com`
servers:
  - url: https://prod.rtymgt.com
    description: Production
  - url: https://staging.rtymgt.com
    description: Staging
security: []
paths:
  /token:
    servers:
      - url: https://prod.resdefio.com
        description: Production
    get:
      summary: GETTOKEN (new stack)
      operationId: Tokens_GetTokenNewStack
      parameters:
        - name: api
          in: query
          required: false
          description: Product the token is generated for.
          schema:
            type: string
          example: ACTIVITY
        - name: tokens
          in: query
          required: false
          description: Number of tokens to generate (1–10).
          schema:
            type: integer
        - name: panel_id
          in: query
          required: false
          description: Optional panelist ID.
          schema:
            type: string
        - name: hashed_email
          in: query
          required: false
          description: Optional hashed email.
          schema:
            type: string
      responses:
        '200':
          description: One or more single-use SHA-256 tokens.
          content:
            application/json:
              schema:
                type: object
                properties:
                  Results:
                    type: array
                    items:
                      type: object
                      properties:
                        API:
                          type: string
                        Tokens:
                          type: array
                          items:
                            type: string
                        Event_Time:
                          type: string
                        Message:
                          type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key issued for the resdefio.com APIs.

````

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