Meeting
Send Meeting Inquiry
POST
/v2/organization/:corporation/inquiry/meeting
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Url
Name
Type
Description
corporation
number
Corporation ID
Body
Name
Type
Description
firstname*
string
Sender first name
lastname
string
Sender last name
email*
string
Sender email address
phone
string
Sender phone #
website
string
Sender website
organization
string
Sender company
message*
string
Sender message
location_city
string
Sender city
username*
string
Recipient(Expert) username
meeting_preferred_time*
string
Time of day
meeting_preferred_days*
string
Days of the week(comma separated)
meeting_timezone*
string
Meeting timezone
meeting_discussion_topics
string
Meeting discussion topics
Response
{
data: {
id: <INQUIRY_ID>
},
success: true
}
Code
const data = new URLSearchParams();
const accessToken = `<ACCESS TOKEN>`
data.append('firstname', 'Testfirstname');
data.append('lastname', 'Teslastname');
data.append('email', '[email protected]');
data.append('phone', '(555) 555-5555');
data.append('website', 'https://mywebsite.com');
data.append('organization', 'NYT');
data.append('location_city', 'New York City');
data.append('location_state', 'NY');
data.append('location_country', 'US');
data.append('username', '<EXPERT USERNAME>');
data.append('meeting_preferred_time', 'AM');
data.append('meeting_preferred_days', 'Thursday, Friday');
data.append('meeting_timezone', 'EDT America/Toronto (GMT -04:00)');
data.append('meeting_discussion_topics', 'This is a meeting discussion note...');
data.append('message', 'This is a test message to the expert...');
fetch('https://public-api.expertfile.com/v2/organization/:corporation/inquiry/meeting', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': `Bearer ${accessToken}`
},
body: data
})
.then(response => response.json())
.then(json => {
const { success, data, error } = json
if (success) {
const { id } = data
console.log('New inquiry id', id)
}
})
.catch(error => console.error(error));
Last updated
Was this helpful?