Skip to content
KnockDevelopers
Members

Get the availability of a member

Chat with a Developer
GET
/v1/members/{memberId}/availability

Returns the member's weekly working hours and the time zone they are in. Knock offers a meeting slot with the member only inside these hours, and only when their calendar is free. A member who never set their hours has Knock's default ones. While a temporary availability period set in Knock is active, such as a vacation, it replaces these hours: this API does not show those periods.

Authorization

ApiKeyAuth
headerx-api-key<token>

Your Knock API key. Ask your Knock account team for one: a key with the Enrichment API role to enrich and route leads and find warm intros, the Viewer role to read chats, meetings, routing rules, FAQs, analytics, magic links, meeting routing rules, marketing cards and members, the Admin, Editor or AI Manager role to change FAQs, the Admin, Editor or Partner Contributor role to create marketing cards and wrap chat links, or the Admin role to set the working hours of your members.

Path Parameters

memberId*string

ID of the member, from GET /v1/members.

Formatuuid

Response Body

The member's working hours.

application/json
  1. response

When a member can be booked: Knock offers a meeting slot with them only inside these hours, and only when their calendar is free. An active temporary availability period set in Knock replaces these hours while it lasts.

memberId*string

ID of the member.

Formatuuid
timeZone*string

IANA time zone the working hours are in, such as America/New_York. UTC when the member never set one.

weeklyHours*

Working hours for each day of the week.

Example Request
curl -X GET 'https://app.knock-ai.com/v1/members/6b1f0c8e-2d4a-4f3b-9e7c-1a5d8b2c4e90/availability' \  -H 'x-api-key: <YOUR_API_KEY>'
Example Response
{  "memberId": "6b1f0c8e-2d4a-4f3b-9e7c-1a5d8b2c4e90",  "timeZone": "America/New_York",  "weeklyHours": {    "monday": [      {        "start": "09:00",        "end": "12:00"      },      {        "start": "13:00",        "end": "17:00"      }    ],    "tuesday": [      {        "start": "09:00",        "end": "17:00"      }    ],    "wednesday": [      {        "start": "09:00",        "end": "17:00"      }    ],    "thursday": [      {        "start": "09:00",        "end": "17:00"      }    ],    "friday": [      {        "start": "09:00",        "end": "17:00"      }    ],    "saturday": [],    "sunday": []  }}