Create an agent self-service organization
Creates a third-party agent organization, service-account API key, and billing account. Use credentialDeliveryPublicKey for encrypted API-key delivery.
curl -X POST "https://public-api.textmine.com/v3/third-party-agents/signup/self-service" \
-H "Content-Type: application/json" \
-d '{
"organizationName": "John Doe",
"agentName": "John Doe",
"contactEmail": "user@example.com",
"acceptedTerms": true,
"acceptedPrivacy": true,
"credentialDeliveryPublicKey": "example_string",
"credentialDeliveryAlgorithm": "RSA-OAEP-256"
}'
import requests
import json
url = "https://public-api.textmine.com/v3/third-party-agents/signup/self-service"
headers = {
"Content-Type": "application/json"
}
data = {
"organizationName": "John Doe",
"agentName": "John Doe",
"contactEmail": "user@example.com",
"acceptedTerms": true,
"acceptedPrivacy": true,
"credentialDeliveryPublicKey": "example_string",
"credentialDeliveryAlgorithm": "RSA-OAEP-256"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://public-api.textmine.com/v3/third-party-agents/signup/self-service", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"organizationName": "John Doe",
"agentName": "John Doe",
"contactEmail": "user@example.com",
"acceptedTerms": true,
"acceptedPrivacy": true,
"credentialDeliveryPublicKey": "example_string",
"credentialDeliveryAlgorithm": "RSA-OAEP-256"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"organizationName": "John Doe",
"agentName": "John Doe",
"contactEmail": "user@example.com",
"acceptedTerms": true,
"acceptedPrivacy": true,
"credentialDeliveryPublicKey": "example_string",
"credentialDeliveryAlgorithm": "RSA-OAEP-256"
}`)
req, err := http.NewRequest("POST", "https://public-api.textmine.com/v3/third-party-agents/signup/self-service", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://public-api.textmine.com/v3/third-party-agents/signup/self-service')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request.body = '{
"organizationName": "John Doe",
"agentName": "John Doe",
"contactEmail": "user@example.com",
"acceptedTerms": true,
"acceptedPrivacy": true,
"credentialDeliveryPublicKey": "example_string",
"credentialDeliveryAlgorithm": "RSA-OAEP-256"
}'
response = http.request(request)
puts response.body
{
"organizationId": 123,
"organizationName": "John Doe",
"serviceAccountUserId": 123,
"apiKeyId": 123,
"contactEmail": "user@example.com",
"apiKey": "null",
"apiKeyPrefix": "example_string",
"credentialRef": "example_string",
"encryptedApiKey": "example_string",
"encryptedApiKeyAlgorithm": "example_string",
"encryptedApiKeyEncoding": "example_string",
"billingStatus": "example_string",
"freeCreditsPerPeriod": 42,
"currency": "example_string",
"gettingStarted": {},
"setupChecklist": [
{
"key": "example_string",
"label": "example_string",
"description": "example_string",
"required": true,
"complete": true
}
]
}
{
"error": "Bad Request",
"message": "The request contains invalid parameters or malformed data",
"code": 400,
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
}
/v3/third-party-agents/signup/self-service
Target server for requests. Edit to use your own host.
The media type of the request body
RSA public key controlled by the trusted agent runtime. Accepts PEM or base64 X.509 SubjectPublicKeyInfo.
Request Preview
Response
Response will appear here after sending the request
Body
RSA public key controlled by the trusted agent runtime. Accepts PEM or base64 X.509 SubjectPublicKeyInfo.
RSA-OAEP-256Responses
Legacy plaintext delivery. Null when encrypted delivery is requested.