Create a project
curl --request POST \
--url https://api.feyn.ai/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Inbox triage",
"projectKey": "<string>"
}
'import requests
url = "https://api.feyn.ai/v1/projects"
payload = {
"name": "Inbox triage",
"projectKey": "<string>"
}
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({name: 'Inbox triage', projectKey: '<string>'})
};
fetch('https://api.feyn.ai/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "k97...",
"projectKey": "inbox-triage",
"displayName": "Inbox triage"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}Observability
Create a project
Create an observability project for the key’s workspace. Not idempotent: a duplicate key is a 409.
POST
/
v1
/
projects
Create a project
curl --request POST \
--url https://api.feyn.ai/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Inbox triage",
"projectKey": "<string>"
}
'import requests
url = "https://api.feyn.ai/v1/projects"
payload = {
"name": "Inbox triage",
"projectKey": "<string>"
}
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({name: 'Inbox triage', projectKey: '<string>'})
};
fetch('https://api.feyn.ai/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "k97...",
"projectKey": "inbox-triage",
"displayName": "Inbox triage"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error"
}
}Body
application/json
⌘I