인증 확인
API 키가 유효한지 확인하여 인증 정보를 확인합니다.
1. API Endpoint
https://app.deepbrain.io/api/odin/v3/auth
2. Response Parameters
key | desc | type |
---|---|---|
isAuthenticated | API 키의 유효성 여부. | Boolean |
3. Sample Request
- cURL
- Node.js
- Python
curl https://app.deepbrain.io/api/odin/v3/editor/project \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X GET
import axios from "axios";
const token = ${API KEY};
const customWebhookUrl = ${webhook_delivery_address};
axios.get('https://app.deepbrain.io/api/odin/v3/auth',
{
headers: {
'Authorization': ${token},
'Content-Type': 'application/json'
}
}
)
.then((res) => {
console.log(res.data);
})
.catch((error) => {
console.error(error);
})
import requests
import json
url = "https://app.deepbrain.io/api/odin/v3/auth"
headers = {
"Content-Type": "application/json",
"Authorization": ${API TOKEN}
}
r = requests.get(url, data=json.dumps(body), headers=headers)
Note: The professional terms, URLs, parameter keys, and proper nouns have been left untranslated as requested.