---
title: "POST /create-salesforce-target"
method: POST
path: "/create-salesforce-target"
tags: ["Targets"]
---

# POST /create-salesforce-target

`POST /create-salesforce-target`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/create-salesforce-target`
- Auth: none declared

## Request body

- CreateSalesforceTarget: createSalesforceTarget is a command that creates a new target. [Deprecated: Use target-create-salesforce command]
  - `app-private-key-data` string: Base64 encoded PEM of the connected app private key (relevant for JWT auth only)
  - `auth-flow` string, required: type of the auth flow ('jwt' / 'user-password')
  - `ca-cert-data` string: Base64 encoded PEM cert to use when uploading a new key to Salesforce
  - `ca-cert-name` string: name of the certificate in Salesforce tenant to use when uploading new key
  - `client-id` string, required: Client ID of the oauth2 app to use for connecting to Salesforce
  - `client-secret` string: Client secret of the oauth2 app to use for connecting to Salesforce (required for password flow)
  - `comment` string: Deprecated - use description
  - `description` string: Description of the object
  - `email` string, required: The email of the user attached to the oauth2 app used for connecting to Salesforce
  - `json` boolean: Set output format to JSON
  - `key` string: The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `lock-on-read` string: Lock this secret after each successful value read
  - `lock-ttl` string: Lock TTL in minutes
  - `max-versions` string: Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required: Target name
  - `password` string: The password of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `security-token` string: The security token of the user attached to the oauth2 app used for connecting to Salesforce (required for user-password flow)
  - `tenant-url` string, required: Url of the Salesforce tenant
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `200`

createSalesforceTargetResponse wraps response body.

- CreateSalesforceTargetOutput
  - `target_id` integer

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
