Operations related to addresses. Addresses provide standardized address data.
BlockPostPayload
The IDs of the company team members assigned to the block.
The IDs of the users assigned to the block.
The start time of the block (ISO 8601 format).
The end time of the block (ISO 8601 format).
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/blocks
- Productionhttps://api.aryeo.com/v1/blocks
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/blocks`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
},
body: JSON.stringify({
company_team_member_ids: [
'123e4567-e89b-12d3-a456-426614174000'
],
user_ids: [
'123e4567-e89b-12d3-a456-426614174000'
],
start_at: '2020-10-04T12:15:00Z',
end_at: '2020-10-04T12:30:00Z',
title: 'Other appointment',
description: 'This is a description of the block.'
})
}
);
const data = await resp.json();
console.log(data);{ "status": "success", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "appointment", "title": "Other appointment", "description": "sdjsudsudsds", "start_at": "2020-10-04T12:15:00Z", "end_at": "2020-10-04T12:30:00Z", "is_all_day": true, "duration": 60, "is_busy": true, "requires_confirmation": true }, "timestamp": "2021-06-30T20:30:00Z" }
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/blocks/{block_id}
- Productionhttps://api.aryeo.com/v1/blocks/{block_id}
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const blockId = '00000000-0000-4000-8000-000000000000';
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/blocks/${blockId}`,
{
method: 'DELETE',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
if (resp.status === 204) {
console.log('success');
} else {
const data = await resp.text();
console.log(data);
}- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/blocks/{block_id}
- Productionhttps://api.aryeo.com/v1/blocks/{block_id}
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const blockId = '00000000-0000-4000-8000-000000000000';
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/blocks/${blockId}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);{ "status": "success", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "appointment", "title": "Other appointment", "description": "sdjsudsudsds", "start_at": "2020-10-04T12:15:00Z", "end_at": "2020-10-04T12:30:00Z", "is_all_day": true, "duration": 60, "is_busy": true, "users": [ { "object": "PERSONAL_ACCESS_TOKEN", "id": "00000000-0000-4000-8000-000000000000", "email": "john.doe@gmail.com", "first_name": "John", "last_name": "Doe", "full_name": "John Doe", "internal_notes": "Internal notes for the user.", "status": "active", "phone": "123456789", "avatar_url": "https://picsum.photos/300", "relationship": "owner", "sso_users": [ { … } ], "is_super": true, "verification_status": "verified", "password_expiration_days": 30, "timezone": "America/New_York", "created_at": "2021-06-30T20:30:00Z" } ], "company_team_members": [ { "object": "COMPANY_TEAM_MEMBER", "id": "00000000-0000-4000-8000-000000000000", "calendar_color": "#FF0000", "permissions": [ { … } ], "restrictions": [ {} ], "is_service_provider": true, "external_id": "1234567890", "company_user": { "object": "PERSONAL_ACCESS_TOKEN", "id": "00000000-0000-4000-8000-000000000000", "email": "john.doe@gmail.com", "first_name": "John", "last_name": "Doe", "full_name": "John Doe", "internal_notes": "Internal notes for the user.", "status": "active", "phone": "123456789", "avatar_url": "https://picsum.photos/300", "relationship": "owner", "sso_users": [ … ], "is_super": true, "verification_status": "verified", "password_expiration_days": 30, "timezone": "America/New_York", "created_at": "2021-06-30T20:30:00Z" }, "has_owner_role": true, "is_owner": true, "invitation_accepted_at": "2025-04-01T05:59:59.999999Z", "role": "ADMIN", "status": "active", "is_active": true, "is_invited": true, "is_revoked": true, "scheduling_priority": 1, "created_at": "2025-04-01T05:59:59.999999Z", "require_appointment_confirmation": true } ] }, "timestamp": "2021-06-30T20:30:00Z" }
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/blocks/{block_id}
- Productionhttps://api.aryeo.com/v1/blocks/{block_id}
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const blockId = '00000000-0000-4000-8000-000000000000';
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/blocks/${blockId}`,
{
method: 'PUT',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);{ "status": "success", "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "type": "appointment", "title": "Other appointment", "description": "sdjsudsudsds", "start_at": "2020-10-04T12:15:00Z", "end_at": "2020-10-04T12:30:00Z", "is_all_day": true, "duration": 60, "is_busy": true, "requires_confirmation": true }, "timestamp": "2021-06-30T20:30:00Z" }
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/regions
- Productionhttps://api.aryeo.com/v1/regions
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/regions`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/scheduling/assignment
- Productionhttps://api.aryeo.com/v1/scheduling/assignment
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/scheduling/assignment`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);The IDs of users whose availability will be listed. UUID Version 4.
Appointment ID used to list availability for an existing order
Returns availability after start_at
Returns availability before end_at
Returns availability for a specific timeframe. Used instead of start_at & end_at
Duration of the event to schedule. Required if appointment_id isn't specified
Interval of bookable timeslots starting at x minutes on the hour . Required if appointment_id isn't specified
The timezone of the client. Available dates results will be localized to this timezone
The requested page of results. Use this parameter to flip through pages when using the timeframe filter
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/scheduling/available-dates
- Productionhttps://api.aryeo.com/v1/scheduling/available-dates
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const query = new URLSearchParams({timezone: 'CST'}).toString();
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/scheduling/available-dates?${query}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);{ "status": "success", "data": [ { "date": "2021-01-01", "is_available": true } ], "meta": { "group_id": "00000000-0000-4000-8000-000000000000", "company_id": "00000000-0000-4000-8000-000000000000", "company_team_member_ids": [ "00000000-0000-4000-8000-000000000000" ], "user_ids": [ "00000000-0000-4000-8000-000000000000" ], "appointment_id": "00000000-0000-4000-8000-000000000000", "start_at": "2021-06-30T20:30:00Z", "end_at": "2021-06-30T21:30:00Z", "timezone": "CST", "is_twilight": true, "interval": 30, "duration": 30, "current_page": 1, "timeframe": "DAY", "timeframe_period": { "startDate": "2025-04-01T05:59:59.999999Z", "endDate": "2025-04-01T05:59:59.999999Z", "startDateIncluded": true, "endDateIncluded": true }, "from": 1, "last_page": 4, "links": [ { "url": "https://admin.aryeo.test/api/v1/companies?page=2", "label": "2", "active": true, "page": 2 } ], "path": "https://api.aryeo.com/v1/{path}", "per_page": 15, "to": 15, "total": 50 }, "links": { "first": "https://api.aryeo.com/v1/{path}?page=1", "last": "https://api.aryeo.com/v1/{path}?page=10", "prev": "https://api.aryeo.com/v1/{path}?page=2", "next": "https://api.aryeo.com/v1/{path}?page=3" }, "timestamp": "2021-06-30T20:30:00Z" }
The IDs of users whose appointments will be listed. UUID Version 4.
Appointment ID used to list availability for an existing order
Duration of the event to schedule. Required if appointment_id isn't specified
Interval of bookable timeslots starting at x minutes on the hour . Required if appointment_id isn't specified
The number of results per page. Only applies when using a date range
The date to list available timeslots
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/scheduling/available-timeslots
- Productionhttps://api.aryeo.com/v1/scheduling/available-timeslots
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const query = new URLSearchParams({
date: '2021-01-01',
timezone: 'CST'
}).toString();
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/scheduling/available-timeslots?${query}`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);{ "status": "success", "data": [ { "start_at": "2021-01-01T00:00:00Z", "end_at": "2021-01-01T00:30:00Z", "users": [ { "object": "PERSONAL_ACCESS_TOKEN", "id": "00000000-0000-4000-8000-000000000000", "email": "john.doe@gmail.com", "first_name": "John", "last_name": "Doe", "full_name": "John Doe", "internal_notes": "Internal notes for the user.", "status": "active", "phone": "123456789", "avatar_url": "https://picsum.photos/300", "relationship": "owner", "sso_users": [ … ], "is_super": true, "verification_status": "verified", "password_expiration_days": 30, "timezone": "America/New_York", "created_at": "2021-06-30T20:30:00Z" } ] } ], "meta": { "group_id": "00000000-0000-4000-8000-000000000000", "company_id": "00000000-0000-4000-8000-000000000000", "company_team_member_ids": [ "00000000-0000-4000-8000-000000000000" ], "user_ids": [ "00000000-0000-4000-8000-000000000000" ], "appointment_id": "00000000-0000-4000-8000-000000000000", "start_at": "2021-06-30T20:30:00Z", "end_at": "2021-06-30T21:30:00Z", "timezone": "CST", "is_twilight": true, "interval": 30, "duration": 30, "current_page": 1, "timeframe": "DAY", "timeframe_period": { "startDate": "2025-04-01T05:59:59.999999Z", "endDate": "2025-04-01T05:59:59.999999Z", "startDateIncluded": true, "endDateIncluded": true }, "from": 1, "last_page": 4, "links": [ { "url": "https://admin.aryeo.test/api/v1/companies?page=2", "label": "2", "active": true, "page": 2 } ], "path": "https://api.aryeo.com/v1/{path}", "per_page": 15, "to": 15, "total": 50 }, "links": { "first": "https://api.aryeo.com/v1/{path}?page=1", "last": "https://api.aryeo.com/v1/{path}?page=10", "prev": "https://api.aryeo.com/v1/{path}?page=2", "next": "https://api.aryeo.com/v1/{path}?page=3" }, "timestamp": "2021-06-30T20:30:00Z" }
- Mock serverhttps://docs.aryeo.com/_mock/api/aryeo/scheduling/item-groupings
- Productionhttps://api.aryeo.com/v1/scheduling/item-groupings
- JS
- PHP
- Go
- Python
- Java
- C#
- cURL
const resp = await fetch(
`https://docs.aryeo.com/_mock/api/aryeo/scheduling/item-groupings`,
{
method: 'GET',
headers: {
Authorization: 'Bearer <YOUR_TOKEN_HERE>'
}
}
);
const data = await resp.text();
console.log(data);