---
title: "Create access key"
method: POST
path: "/pipeline/gateway-route/{gateway_route_id}/access-key"
tags: ["Shared Sources"]
---

# Create access key

`POST /pipeline/gateway-route/{gateway_route_id}/access-key`

## Request

- Base URL: `https://api.mezmo.com/v3`
- URL: `https://api.mezmo.com/v3/pipeline/gateway-route/{gateway_route_id}/access-key`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/mezmo/apis/pipeline-api/docs/pipeline/gateway-route/:gateway_route_id/access-key/post.ts> (a function with typed inputs; its response is checked against the schema)

Create an access key associated with this gateway route

## Path parameters

- `gateway_route_id` string, uuid, required

## Request body

- object
  - `type` 'generated' | 'user_defined', required
  - `title` string, required
  - `key` string

## Response `200`

Default Response

---

[API](https://skmtc.dev/mezmo/apis/pipeline-api.md) - [All operations](https://skmtc.dev/mezmo/apis/pipeline-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mezmo/apis/pipeline-api/revisions/fb2535545d90?raw)
