---
title: "Create a storefront public API key"
method: POST
path: "/v3/stores/{store_id}/public-api-keys"
tags: ["Storefront Setup"]
---

# Create a storefront public API key

`POST /v3/stores/{store_id}/public-api-keys`

Requires the `store:update` scope. Uses the authenticated business store ID.

## Response `200`

Storefront public API key

- StorefrontPublicApiKey
  - `id` string, uuid, required
  - `token` string, nullable — Present only while the key is active.
  - `status` 'active' | 'revoked', required
  - `store_id` integer, required
  - `created_by` object, nullable
  - `inserted_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/scalev/apis/nexus-commerce-api.md) · [All operations](https://skmtc.net/scalev/apis/nexus-commerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalev/nexus-commerce-api/revisions/730030bd6477/schema)
