---
title: "Create Api Key"
method: POST
path: "/salesforce/api-keys"
tags: ["Salesforce"]
---

# Create Api Key

`POST /salesforce/api-keys`

## Request

- Base URL: `https://backend.ressl.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.ressl.ai/salesforce/api-keys`
- Auth: none declared

Create a new API key for service-to-service authentication.

The API key allows external systems (like Salesforce LWC) to call Ressl APIs
on behalf of the authenticated user. The key is scoped to a specific
Salesforce connection.

IMPORTANT: The plaintext API key is returned ONLY ONCE. Store it securely.

## Request body `application/x-www-form-urlencoded`

- BodyCreateApiKeySalesforceApiKeysPost
  - `connection_id` string, required: Salesforce connection ID to scope the key to
  - `name` string: Friendly name for the API key

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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