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

# Get skew protection threshold

> Get the environment's skew protection threshold, each task's own threshold, and the current deployment version.



## OpenAPI

````yaml v3-openapi GET /api/v1/deployments/skew-protection-threshold
openapi: 3.1.0
info:
  title: Trigger.dev v3 REST API
  description: >-
    The REST API lets you trigger and manage runs on Trigger.dev. You can
    trigger a run, get the status of a run, and get the results of a run. 
  version: 2024-04
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://api.trigger.dev
    description: Trigger.dev API
security: []
paths:
  /api/v1/deployments/skew-protection-threshold:
    get:
      tags:
        - deployments
      summary: Get skew protection threshold
      description: >-
        Get the environment's skew protection threshold, each task's own
        threshold, and the current deployment version.
      operationId: get_skew_protection_threshold_v1
      responses:
        '200':
          description: The environment's skew protection state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkewProtectionThresholdState'
        '401':
          description: >-
            Unauthorized. The API key is missing or invalid, or isn't a secret
            key
        '403':
          description: The API key can't read deployments
      security:
        - secretKey: []
      x-codeSamples:
        - lang: curl
          source: >-
            curl
            "https://api.trigger.dev/api/v1/deployments/skew-protection-threshold"
            \
              -H "Authorization: Bearer tr_prod_sk_1234"
components:
  schemas:
    SkewProtectionThresholdState:
      type: object
      properties:
        currentVersion:
          type: string
          nullable: true
          description: The current deployment's version, or null when nothing is current.
          example: '20261109.22'
        threshold:
          description: >-
            The environment's skew protection threshold, or null when none is
            set.
          anyOf:
            - $ref: '#/components/schemas/SkewProtectionThreshold'
            - type: 'null'
        tasks:
          type: object
          description: >-
            Each task's own skew protection threshold, by task id. Empty when no
            task has one.
          additionalProperties:
            $ref: '#/components/schemas/SkewProtectionThreshold'
    SkewProtectionThreshold:
      type: object
      properties:
        version:
          type: string
          example: '20261109.22'
        deploymentId:
          type: string
          nullable: true
          description: The ID of the deployment with this version.
          example: deployment_exv9bt4gdbuun6mc24iuq
        setAt:
          type: string
          format: date-time
        setBy:
          type: object
          nullable: true
          properties:
            type:
              type: string
              enum:
                - user
                - api
                - migrated
              description: >-
                `user` from the dashboard, `api` through this API, `migrated`
                when Trigger.dev set it for you.
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      description: >
        Use a named environment API key. It starts with `tr_dev_sk_`,
        `tr_prod_sk_`, `tr_stg_sk_`, etc.


        Create a named API key in the API Keys section of your Trigger.dev
        project dashboard. Choose the narrowest access preset that supports your
        integration.


        Our TypeScript SDK will default to using the value of the
        `TRIGGER_SECRET_KEY` environment variable if it is set. If you are using
        the SDK in a different environment, you can set the key using the
        `configure` function.


        ```typescript

        import { configure } from "@trigger.dev/sdk";


        configure({ accessToken: "tr_dev_sk_1234" });

        ```

````

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