curl --request POST \
--url https://api.extole.io/v2/settings/security/keys/upload \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'clientKeyCreateRequest={
"algorithm": "SSL_PKCS_12",
"description": "<string>",
"name": "<string>",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"password": "<string>"
}' \
--form 'fileInputStreamRequest={
"attributes": {
"fileName": "<string>",
"size": 123
},
"inputStream": "<string>"
}'import requests
url = "https://api.extole.io/v2/settings/security/keys/upload"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
headers = {
"Authorization": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('clientKeyCreateRequest', '{
"algorithm": "SSL_PKCS_12",
"description": "<string>",
"name": "<string>",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"password": "<string>"
}');
form.append('fileInputStreamRequest', '{
"attributes": {
"fileName": "<string>",
"size": 123
},
"inputStream": "<string>"
}');
const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
options.body = form;
fetch('https://api.extole.io/v2/settings/security/keys/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v2/settings/security/keys/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v2/settings/security/keys/upload"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.extole.io/v2/settings/security/keys/upload")
.header("Authorization", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v2/settings/security/keys/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"algorithm": "A128KW",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"created_at": "2025-10-24T02:00:00-07:00",
"description": "<string>",
"id": "<string>",
"key": "<string>",
"name": "<string>",
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"type": "JWT",
"updated_at": "2025-10-24T02:00:00-07:00"
}Create client key from file
Creates a client key by uploading key material as multipart/form-data. Currently supports PKCS#12 (.p12/.pfx) bundles with algorithm SSL_PKCS_12. For JSON create use POST /v2/settings/security/keys.
curl --request POST \
--url https://api.extole.io/v2/settings/security/keys/upload \
--header 'Authorization: <api-key>' \
--header 'Content-Type: multipart/form-data' \
--form 'clientKeyCreateRequest={
"algorithm": "SSL_PKCS_12",
"description": "<string>",
"name": "<string>",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"password": "<string>"
}' \
--form 'fileInputStreamRequest={
"attributes": {
"fileName": "<string>",
"size": 123
},
"inputStream": "<string>"
}'import requests
url = "https://api.extole.io/v2/settings/security/keys/upload"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
headers = {
"Authorization": "<api-key>",
"Content-Type": "multipart/form-data"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('clientKeyCreateRequest', '{
"algorithm": "SSL_PKCS_12",
"description": "<string>",
"name": "<string>",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"password": "<string>"
}');
form.append('fileInputStreamRequest', '{
"attributes": {
"fileName": "<string>",
"size": 123
},
"inputStream": "<string>"
}');
const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
options.body = form;
fetch('https://api.extole.io/v2/settings/security/keys/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.extole.io/v2/settings/security/keys/upload",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.extole.io/v2/settings/security/keys/upload"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.extole.io/v2/settings/security/keys/upload")
.header("Authorization", "<api-key>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.extole.io/v2/settings/security/keys/upload")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"clientKeyCreateRequest\"\r\n\r\n{\r\n \"algorithm\": \"SSL_PKCS_12\",\r\n \"description\": \"<string>\",\r\n \"name\": \"<string>\",\r\n \"component_ids\": [\r\n \"<string>\"\r\n ],\r\n \"component_references\": [\r\n {\r\n \"component_id\": \"<string>\",\r\n \"socket_names\": [\r\n \"<string>\"\r\n ]\r\n }\r\n ],\r\n \"partner_key_id\": \"<string>\",\r\n \"tags\": [\r\n \"<string>\"\r\n ],\r\n \"password\": \"<string>\"\r\n}\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"fileInputStreamRequest\"\r\n\r\n{\r\n \"attributes\": {\r\n \"fileName\": \"<string>\",\r\n \"size\": 123\r\n },\r\n \"inputStream\": \"<string>\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"algorithm": "A128KW",
"component_ids": [
"<string>"
],
"component_references": [
{
"component_id": "<string>",
"socket_names": [
"<string>"
]
}
],
"created_at": "2025-10-24T02:00:00-07:00",
"description": "<string>",
"id": "<string>",
"key": "<string>",
"name": "<string>",
"partner_key_id": "<string>",
"tags": [
"<string>"
],
"type": "JWT",
"updated_at": "2025-10-24T02:00:00-07:00"
}Body
Response
Successful response
- A128KW
- A192KW
- A256KW
- ES256_PRIVATE
- ES256_PUBLIC
- ES384_PRIVATE
- ES384_PUBLIC
- ES512_PRIVATE
- ES512_PUBLIC
- HS256
- HS384
- HS512
- HTTP_BASIC
- OAUTH
- OAUTH_GENERIC
- OAUTH_LEAD_PERFECTION
- OAUTH_LISTRAK
- OAUTH_OPTIMOVE
- OAUTH_SALESFORCE
- OAUTH_SFDC
- OAUTH_SFDC_PASSWORD
- PASSWORD
- PROXY
- PS256_PRIVATE
- PS256_PUBLIC
- PS384_PRIVATE
- PS384_PUBLIC
- PS512_PRIVATE
- PS512_PUBLIC
- RS256_PRIVATE
- RS256_PUBLIC
- RS384_PRIVATE
- RS384_PUBLIC
- RS512_PRIVATE
- RS512_PUBLIC
- RSA
- RSA_OAEP_256_PRIVATE
- RSA_OAEP_256_PUBLIC
- RSA_OAEP_384_PRIVATE
- RSA_OAEP_384_PUBLIC
- RSA_OAEP_512_PRIVATE
- RSA_OAEP_512_PUBLIC
- SSL_PKCS_12
Stored generic client key definition. Fields name and description are unevaluated and appear in buildtime-evaluatable form.
RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Optional build-time expression that resolves to a human-readable description. Buildtime expressions use ClientKeyBuildtimeContext.
Display name for the key, in the same build-time evaluatable form that was supplied on create or update. Buildtime expressions use ClientKeyBuildtimeContext.
RFC 3339 or RFC 9557 date-time with a numeric UTC offset and an optional IANA time-zone suffix in square brackets. Precision up to milliseconds.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])(\[[^\]]+\])?$"2025-10-24T02:00:00-07:00"
Was this page helpful?
