Mint a short-lived session credential
Call this first: every other route needs the key it returns. Requires a secret (sk_) key — a session cannot mint itself.
POST
/v1/ephemeral_keysHeader parameters
Idempotency-KeystringReplay-safe key; the server returns the cached credential on retry.
Request body
requiredapplication/jsonuserobjectrequiredShow propertiesHide properties
idstringrequiredmin length 1
teamIdsstring[]organizationIdstringmin length 1
schemaProjectIdstringmin length 1
schemaOwnerOrgIdstringmin length 1
syncGroupsstring[]Show propertiesHide properties
Array of
stringAny of:
string
stringstring
stringoperationsstring[]requiredmin items 1
ttlSecondsintegermax 9007199254740991
labelstringmin length 1
Responses
201The minted credential
objectstringidstringrequiredmin length 1
tokenstringrequiredmin length 1
expiresAtstringrequiredmin length 1
organizationIdstringrequiredmin length 1
participantIdstringrequiredmin length 1
projectIdstring | anyrequireddefault: null
Show propertiesHide properties
Any of:
string
stringany
anybranchIdstring | anyrequireddefault: null
Show propertiesHide properties
Any of:
string
stringany
anybranchRootbooleanrequireddefault: false
syncGroupsstring[]requiredoperationsstring[]requiredmin items 1
400The request did not satisfy the published contract.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring401The Bearer credential is missing, malformed, or expired.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring403The credential does not authorize this operation.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring404The addressed resource does not exist in the credential scope.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring409The request conflicts with current claim, version, or idempotency state.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring429The caller exceeded an enforced rate limit.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring500The server could not complete the request.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstring503A required service is temporarily unavailable.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstringdefaultAn HTTP error not otherwise listed; decoded through the canonical envelope.
typestringrequiredcodestringparamstringmessagestringrequireddoc_urlstringrequest_idstringerrorsobject[]Show propertiesHide properties
Array of
objectcodestringmessagestringrequiredparamstringRequest
curl -X POST "https://api.abloatai.com/api/v1/ephemeral_keys" \
-H "Content-Type: application/json" \
-d '{
"user": {
"id": "string",
"teamIds": [
"string"
]
},
"organizationId": "string",
"schemaProjectId": "string",
"schemaOwnerOrgId": "string",
"syncGroups": [
"default"
],
"operations": [
"string"
],
"ttlSeconds": 0,
"label": "string"
}'const response = await fetch("https://api.abloatai.com/api/v1/ephemeral_keys", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"user": {
"id": "string",
"teamIds": [
"string"
]
},
"organizationId": "string",
"schemaProjectId": "string",
"schemaOwnerOrgId": "string",
"syncGroups": [
"default"
],
"operations": [
"string"
],
"ttlSeconds": 0,
"label": "string"
})
});import requests
response = requests.post(
"https://api.abloatai.com/api/v1/ephemeral_keys",
headers={
"Content-Type": "application/json"
},
json={
"user": {
"id": "string",
"teamIds": [
"string"
]
},
"organizationId": "string",
"schemaProjectId": "string",
"schemaOwnerOrgId": "string",
"syncGroups": [
"default"
],
"operations": [
"string"
],
"ttlSeconds": 0,
"label": "string"
},
)Response
{
"object": "ephemeral_key",
"id": "string",
"token": "string",
"expiresAt": "string",
"organizationId": "string",
"participantId": "string",
"projectId": null,
"branchId": null,
"branchRoot": false,
"syncGroups": [
"string"
],
"operations": [
"string"
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}{
"type": "string",
"code": "string",
"param": "string",
"message": "string",
"doc_url": "string",
"request_id": "string",
"errors": [
{
"code": "string",
"message": "string",
"param": "string"
}
]
}