---
title: "Obtain the publishable key for a specific environment"
method: GET
path: "/auth/publishable-key"
tags: ["auth"]
---

# Obtain the publishable key for a specific environment

`GET /auth/publishable-key`

## Query parameters

- `environmentId` string, required — Environment ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeAuthPublishableKeyResponse
  - `data` TypeAuthApiKey, required — API Key used for authenticating against our APIs
    - `id` string, required — Api Key ID
    - `rawKey` string — Raw Api Key
    - `type` 'PUBLISHABLE' | 'SECRET', required
    - `environmentId` string — Environment ID
    - `accountId` string — Account ID
    - `operations` TypeAuthApiKeyOperation[], required
      - `path` string, required
      - `method` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `secret` string

## Other responses

- `400` — Error response with status 400
- `404` — Error response with status 404

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/revisions/9d3a9979cd96/schema)
