identity connections
Create Connection
POST
/
api
/
identity-connections
Create Connection
curl --request POST \
--url https://api.aixy-gateway.com/api/identity-connections \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"provider": "google_workspace",
"display_name": "<string>",
"workspace_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/identity-connections"
payload = {
"provider": "google_workspace",
"display_name": "<string>",
"workspace_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: 'google_workspace',
display_name: '<string>',
workspace_domain: '<string>',
client_id: '<string>',
client_secret: '<string>'
})
};
fetch('https://api.aixy-gateway.com/api/identity-connections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"protocol": "<string>",
"provider": "<string>",
"display_name": "<string>",
"allowed_domains": [
"<string>"
],
"default_role": "<string>",
"default_project_ids": [
"<string>"
],
"status": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"object": "identity_connection"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Secure same-origin browser session cookie.
Body
application/json
Response
Successful Response
Allowed value:
"identity_connection"⌘I
Create Connection
curl --request POST \
--url https://api.aixy-gateway.com/api/identity-connections \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"provider": "google_workspace",
"display_name": "<string>",
"workspace_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/identity-connections"
payload = {
"provider": "google_workspace",
"display_name": "<string>",
"workspace_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
provider: 'google_workspace',
display_name: '<string>',
workspace_domain: '<string>',
client_id: '<string>',
client_secret: '<string>'
})
};
fetch('https://api.aixy-gateway.com/api/identity-connections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"protocol": "<string>",
"provider": "<string>",
"display_name": "<string>",
"allowed_domains": [
"<string>"
],
"default_role": "<string>",
"default_project_ids": [
"<string>"
],
"status": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"object": "identity_connection"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}