Integrations
Create a new integration
Connects a third-party application to the specified workspace. Config is validated against the JSON Schema for the given appType + category.
POST
/
api
/
integrations
Create a new integration
curl --request POST \
--url https://{baseUrl}/api/v1/api/integrations \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Jira Integration",
"appType": "jira",
"category": "ticketing",
"config": {
"host": "https://your-domain.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token"
}
}
'import requests
url = "https://{baseUrl}/api/v1/api/integrations"
payload = {
"name": "My Jira Integration",
"appType": "jira",
"category": "ticketing",
"config": {
"host": "https://your-domain.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Jira Integration',
appType: 'jira',
category: 'ticketing',
config: {
host: 'https://your-domain.atlassian.net',
email: '[email protected]',
apiToken: 'your-api-token'
}
})
};
fetch('https://{baseUrl}/api/v1/api/integrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/integrations"
payload := strings.NewReader("{\n \"name\": \"My Jira Integration\",\n \"appType\": \"jira\",\n \"category\": \"ticketing\",\n \"config\": {\n \"host\": \"https://your-domain.atlassian.net\",\n \"email\": \"[email protected]\",\n \"apiToken\": \"your-api-token\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"name": "<string>",
"appType": "<string>",
"category": "<string>",
"config": {},
"workspaceId": "<string>",
"createdById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>"
}본문
application/json
App-specific configuration validated via JSON Schema
예시:
{
"host": "https://your-domain.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token"
}
⌘I
Create a new integration
curl --request POST \
--url https://{baseUrl}/api/v1/api/integrations \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Jira Integration",
"appType": "jira",
"category": "ticketing",
"config": {
"host": "https://your-domain.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token"
}
}
'import requests
url = "https://{baseUrl}/api/v1/api/integrations"
payload = {
"name": "My Jira Integration",
"appType": "jira",
"category": "ticketing",
"config": {
"host": "https://your-domain.atlassian.net",
"email": "[email protected]",
"apiToken": "your-api-token"
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'My Jira Integration',
appType: 'jira',
category: 'ticketing',
config: {
host: 'https://your-domain.atlassian.net',
email: '[email protected]',
apiToken: 'your-api-token'
}
})
};
fetch('https://{baseUrl}/api/v1/api/integrations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/integrations"
payload := strings.NewReader("{\n \"name\": \"My Jira Integration\",\n \"appType\": \"jira\",\n \"category\": \"ticketing\",\n \"config\": {\n \"host\": \"https://your-domain.atlassian.net\",\n \"email\": \"[email protected]\",\n \"apiToken\": \"your-api-token\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"name": "<string>",
"appType": "<string>",
"category": "<string>",
"config": {},
"workspaceId": "<string>",
"createdById": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>"
}