Create Detection Session
curl --request POST \
--url https://api.kynasmith.dev/api/detection/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contract_major": 1,
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.kynasmith.dev/api/detection/sessions"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contract_major": 1,
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
contract_major: 1,
movespec_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
movespec_version_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.kynasmith.dev/api/detection/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"input_schema_version": "<string>",
"mode": "live",
"output_schema_version": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runtime_token": "<string>",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"stream_url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}detection
Create Detection Session
Create a customer detection session.
POST
/
api
/
detection
/
sessions
Create Detection Session
curl --request POST \
--url https://api.kynasmith.dev/api/detection/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contract_major": 1,
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.kynasmith.dev/api/detection/sessions"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contract_major": 1,
"movespec_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
contract_major: 1,
movespec_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
movespec_version_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.kynasmith.dev/api/detection/sessions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"input_schema_version": "<string>",
"mode": "live",
"output_schema_version": "<string>",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved_movespec_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"runtime_token": "<string>",
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "created",
"stream_url": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}
}Authorizations
BearerAccessTokenBearerAccessToken
Body
application/json
Create-detection-session request payload.
Response
Successful Response
Session-creation response returned after admission succeeds.