メインコンテンツへスキップ
POST
/
scheduler
/
v3
/
meetings
/
meeting-links
/
book
ミーティングを予約
curl --request POST \
  --url https://api.hubapi.com/scheduler/v3/meetings/meeting-links/book \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "duration": 123,
  "email": "<string>",
  "firstName": "<string>",
  "formFields": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "lastName": "<string>",
  "legalConsentResponses": [
    {
      "communicationTypeId": "<string>",
      "consented": true
    }
  ],
  "likelyAvailableUserIds": [
    "<string>"
  ],
  "slug": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "locale": "<string>",
  "timezone": "<string>"
}
'
import requests

url = "https://api.hubapi.com/scheduler/v3/meetings/meeting-links/book"

payload = {
    "duration": 123,
    "email": "<string>",
    "firstName": "<string>",
    "formFields": [
        {
            "name": "<string>",
            "value": "<string>"
        }
    ],
    "lastName": "<string>",
    "legalConsentResponses": [
        {
            "communicationTypeId": "<string>",
            "consented": True
        }
    ],
    "likelyAvailableUserIds": ["<string>"],
    "slug": "<string>",
    "startTime": "2023-11-07T05:31:56Z",
    "locale": "<string>",
    "timezone": "<string>"
}
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({
    duration: 123,
    email: '<string>',
    firstName: '<string>',
    formFields: [{name: '<string>', value: '<string>'}],
    lastName: '<string>',
    legalConsentResponses: [{communicationTypeId: '<string>', consented: true}],
    likelyAvailableUserIds: ['<string>'],
    slug: '<string>',
    startTime: '2023-11-07T05:31:56Z',
    locale: '<string>',
    timezone: '<string>'
  })
};

fetch('https://api.hubapi.com/scheduler/v3/meetings/meeting-links/book', 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.hubapi.com/scheduler/v3/meetings/meeting-links/book",
  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([
    'duration' => 123,
    'email' => '<string>',
    'firstName' => '<string>',
    'formFields' => [
        [
                'name' => '<string>',
                'value' => '<string>'
        ]
    ],
    'lastName' => '<string>',
    'legalConsentResponses' => [
        [
                'communicationTypeId' => '<string>',
                'consented' => true
        ]
    ],
    'likelyAvailableUserIds' => [
        '<string>'
    ],
    'slug' => '<string>',
    'startTime' => '2023-11-07T05:31:56Z',
    'locale' => '<string>',
    'timezone' => '<string>'
  ]),
  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.hubapi.com/scheduler/v3/meetings/meeting-links/book"

	payload := strings.NewReader("{\n  \"duration\": 123,\n  \"email\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"formFields\": [\n    {\n      \"name\": \"<string>\",\n      \"value\": \"<string>\"\n    }\n  ],\n  \"lastName\": \"<string>\",\n  \"legalConsentResponses\": [\n    {\n      \"communicationTypeId\": \"<string>\",\n      \"consented\": true\n    }\n  ],\n  \"likelyAvailableUserIds\": [\n    \"<string>\"\n  ],\n  \"slug\": \"<string>\",\n  \"startTime\": \"2023-11-07T05:31:56Z\",\n  \"locale\": \"<string>\",\n  \"timezone\": \"<string>\"\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.hubapi.com/scheduler/v3/meetings/meeting-links/book")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"duration\": 123,\n  \"email\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"formFields\": [\n    {\n      \"name\": \"<string>\",\n      \"value\": \"<string>\"\n    }\n  ],\n  \"lastName\": \"<string>\",\n  \"legalConsentResponses\": [\n    {\n      \"communicationTypeId\": \"<string>\",\n      \"consented\": true\n    }\n  ],\n  \"likelyAvailableUserIds\": [\n    \"<string>\"\n  ],\n  \"slug\": \"<string>\",\n  \"startTime\": \"2023-11-07T05:31:56Z\",\n  \"locale\": \"<string>\",\n  \"timezone\": \"<string>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.hubapi.com/scheduler/v3/meetings/meeting-links/book")

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  \"duration\": 123,\n  \"email\": \"<string>\",\n  \"firstName\": \"<string>\",\n  \"formFields\": [\n    {\n      \"name\": \"<string>\",\n      \"value\": \"<string>\"\n    }\n  ],\n  \"lastName\": \"<string>\",\n  \"legalConsentResponses\": [\n    {\n      \"communicationTypeId\": \"<string>\",\n      \"consented\": true\n    }\n  ],\n  \"likelyAvailableUserIds\": [\n    \"<string>\"\n  ],\n  \"slug\": \"<string>\",\n  \"startTime\": \"2023-11-07T05:31:56Z\",\n  \"locale\": \"<string>\",\n  \"timezone\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "bookingTimezone": "<string>",
  "calendarEventId": "<string>",
  "contactId": "<string>",
  "duration": 123,
  "end": "2023-11-07T05:31:56Z",
  "formFields": [
    {
      "isCustom": true,
      "label": "<string>",
      "name": "<string>",
      "value": "<string>",
      "fieldType": "<string>",
      "translatedLabel": "<string>",
      "valueLabel": "<string>"
    }
  ],
  "guestEmails": [
    "<string>"
  ],
  "isOffline": true,
  "legalConsentResponses": [
    {
      "communicationTypeId": "<string>",
      "consented": true
    }
  ],
  "start": "2023-11-07T05:31:56Z",
  "subject": "<string>",
  "locale": "<string>",
  "location": "<string>",
  "webConferenceMeetingId": "<string>",
  "webConferenceUrl": "<string>"
}
{
  "message": "Invalid input (details will vary based on the error)",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "category": "VALIDATION_ERROR",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  }
}

Supported products

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

ボディ

application/json
duration
integer<int64>
必須

ミーティングの所要時間(ミリ秒)。

email
string
必須

ミーティングを予約した個人のEメールアドレス。

firstName
string
必須

ミーティングを予約した個人の名。

formFields
object[]
必須
lastName
string
必須

ミーティングを予約した個人の姓。

likelyAvailableUserIds
string[]
必須
slug
string
必須

ミーティングページの固有経路ID。

startTime
string<date-time>
必須

ミーティングの開始が予定されている日時(ISO 8601形式)。

locale
string

ミーティング予約で日時の書式設定に使用されるロケール。

timezone
string

ミーティングがスケジュールされているタイムゾーン。

レスポンス

successful operation

bookingTimezone
string
必須

ミーティングが予約されたタイムゾーン。

calendarEventId
string
必須

ミーティングのカレンダーイベントの固有ID。

contactId
string
必須

ミーティングに関連付けられているコンタクトのID。

duration
integer<int64>
必須

ミーティングの所要時間(ミリ秒)。

end
string<date-time>
必須

ミーティングの終了が予定されている日時(ISO 8601形式)。

formFields
object[]
必須
guestEmails
string[]
必須
isOffline
boolean
必須

ミーティングがオフラインで予約され、関連付けられたカレンダーイベントが作成されていないかどうか。

start
string<date-time>
必須

ミーティングの開始が予定されている日時(ISO 8601形式)。

subject
string
必須

ミーティングとカレンダーイベントのタイトル。

locale
string

ミーティングの予約に使用されたロケール。カレンダーイベントの説明での日付の書式設定の決定に使用されます。

location
string

ミーティングが行われる場所の住所またはオンラインの場所。

webConferenceMeetingId
string

ウェブ会議ミーティングの固有ID。

webConferenceUrl
string

ミーティングのウェブ会議にアクセスするためのURL。

最終更新日 2026年4月10日