Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/social/calendar/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [
{
"accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3"
}
],
"to": "2026-11-01T09:00:00Z"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/social/calendar/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [
{
"accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3"
}
],
"to": "2026-11-01T09:00:00Z"
}
'import requests
url = "https://api.aisa.one/apis/v1/social/calendar/availability"
payload = {
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [{ "accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3" }],
"to": "2026-11-01T09:00:00Z"
}
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({
durationMinutes: 5,
from: '2026-11-01T09:00:00Z',
participants: [{accountId: 'acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3'}],
to: '2026-11-01T09:00:00Z'
})
};
fetch('https://api.aisa.one/apis/v1/social/calendar/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/social/calendar/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'durationMinutes' => 5,
'from' => '2026-11-01T09:00:00Z',
'participants' => [
[
'accountId' => 'acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3'
]
],
'to' => '2026-11-01T09:00:00Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/social/calendar/availability"
payload := strings.NewReader("{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/social/calendar/availability")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/calendar/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"timeSlots": [
{
"accountIds": [
"<string>"
],
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Contacts & calendar
Find meeting slots across accounts
Calendar. Read only; needs social:read. Ids are yours: accounts acc_…, profiles prf_…, posts pst_…; every other object id is checked against your accounts before the call.
Slots of durationMinutes every intervalMinutes between from and to that are free for every participant (collective) or for at least one (max_availability). Buffers pad the participants’ existing meetings. Open hours are evaluated in each participant’s own timezone; defaultOpenHours applies to participants without their own.
POST
https://api.aisa.one
/
apis
/
v1
/
social
/
calendar
/
availability
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request POST \
--url https://api.aisa.one/apis/v1/social/calendar/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [
{
"accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3"
}
],
"to": "2026-11-01T09:00:00Z"
}'curl --request POST \
--url https://api.aisa.one/apis/v1/social/calendar/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [
{
"accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3"
}
],
"to": "2026-11-01T09:00:00Z"
}
'import requests
url = "https://api.aisa.one/apis/v1/social/calendar/availability"
payload = {
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [{ "accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3" }],
"to": "2026-11-01T09:00:00Z"
}
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({
durationMinutes: 5,
from: '2026-11-01T09:00:00Z',
participants: [{accountId: 'acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3'}],
to: '2026-11-01T09:00:00Z'
})
};
fetch('https://api.aisa.one/apis/v1/social/calendar/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/social/calendar/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'durationMinutes' => 5,
'from' => '2026-11-01T09:00:00Z',
'participants' => [
[
'accountId' => 'acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3'
]
],
'to' => '2026-11-01T09:00:00Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/social/calendar/availability"
payload := strings.NewReader("{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/social/calendar/availability")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/social/calendar/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"durationMinutes\": 5,\n \"from\": \"2026-11-01T09:00:00Z\",\n \"participants\": [\n {\n \"accountId\": \"acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3\"\n }\n ],\n \"to\": \"2026-11-01T09:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"timeSlots": [
{
"accountIds": [
"<string>"
],
"from": "2023-11-07T05:31:56Z",
"to": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"param": "<string>",
"retryHint": "never",
"retryable": true,
"type": "<string>"
}
}Request contract
- Method and path: POST /apis/v1/social/calendar/availability
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/social/calendar/availability
{
"operationId": "post_aisa_social_apis_v1_social_calendar_availability",
"method": "POST",
"path": "/apis/v1/social/calendar/availability",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"example": {
"durationMinutes": 5,
"from": "2026-11-01T09:00:00Z",
"participants": [
{
"accountId": "acc_7Hq2Lm9Xc4Rt8Vw1Nb6Ks3"
}
],
"to": "2026-11-01T09:00:00Z"
},
"schema": {
"properties": {
"buffer": {
"properties": {
"after": {
"default": 0,
"maximum": 240,
"minimum": 0,
"type": "integer"
},
"before": {
"default": 0,
"maximum": 240,
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"defaultOpenHours": {
"items": {
"properties": {
"days": {
"description": "0 = Sunday.",
"items": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"type": "array"
},
"end": {
"type": "string"
},
"exdates": {
"description": "Dates to exclude.",
"items": {
"format": "date",
"type": "string"
},
"type": "array"
},
"start": {
"type": "string"
},
"timezone": {
"type": "string"
}
},
"required": [
"days",
"end",
"start",
"timezone"
],
"type": "object"
},
"type": "array"
},
"durationMinutes": {
"maximum": 480,
"minimum": 5,
"type": "integer"
},
"from": {
"format": "date-time",
"type": "string"
},
"intervalMinutes": {
"default": 30,
"maximum": 240,
"minimum": 5,
"type": "integer"
},
"method": {
"default": "collective",
"enum": [
"collective",
"max_availability"
],
"type": "string"
},
"participants": {
"items": {
"properties": {
"accountId": {
"description": "One of your social accounts (acc_...).",
"pattern": "^acc_[0-9A-Za-z]{22}$",
"type": "string"
},
"openHours": {
"items": {
"properties": {
"days": {
"description": "0 = Sunday.",
"items": {
"maximum": 6,
"minimum": 0,
"type": "integer"
},
"type": "array"
},
"end": {
"type": "string"
},
"exdates": {
"description": "Dates to exclude.",
"items": {
"format": "date",
"type": "string"
},
"type": "array"
},
"start": {
"type": "string"
},
"timezone": {
"type": "string"
}
},
"required": [
"days",
"end",
"start",
"timezone"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"accountId"
],
"type": "object"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
},
"roundTo": {
"description": "Rounds the first candidate slot up to this many minutes.",
"maximum": 60,
"minimum": 5,
"type": "integer"
},
"to": {
"format": "date-time",
"type": "string"
}
},
"required": [
"durationMinutes",
"from",
"participants",
"to"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
No additional charge for this operation.Authorizations
Body
application/json