Skip to main content
POST
/
headless
/
credentials
Create Credential
curl --request POST \
  --url https://production.runalloy.com/headless/credentials \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --data '{
  "userId": "string",
  "credential": {
    "type": "netsuite",
    "data": {
      "realm": "XXX",
      "consumerKey": "XXX",
      "tokenId": "XXX",
      "tokenSecret": "XXX"
    }
  }
}'
{
  "success": true,
  "credentialId": "63252d14cc29df15cc481a76"
}

Headers

Authorization
string
default:bearer YOUR_API_KEY
required
x-api-version
string
default:2025-09
required

The version of the API to use. The current API version is 2025-09.

Body

application/json
credential
object
required

The data for the credential you want to create.

userId
string
required

The id of the currently logged in user

Response

200 - application/json

200

success
boolean
default:true
Example:

true

credentialId
string
Example:

"63252d14cc29df15cc481a76"

I