Admission

Admissions inquiries are pivotal for professors because they: Recruit Talent, Build relationships & Enhance Reputation.

Send Admission Inquiry

POST /v2/organization/:corporation/inquiry/admission

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Url

NameTypeDescription

corporation

number

Corporation ID

Body

NameTypeDescription

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

location_state

string

Sender state/province See full list here

location_country

string

Sender country See full list here

username*

string

Recipient(Expert) username

admission_type*

string

Admission Type(valid input: 'undergraduate', 'graduate')

admission_program_name*

string

Program name

admission_faculty*

string

Faculty

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', 'testing@test.com');
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('admission_type', 'graduate');
data.append('admission_program_name', 'Computer Science');
data.append('admission_faculty', 'Mathematics & Science');
data.append('message', 'This is a test message to the expert...');

fetch('https://public-api.expertfile.com/v2/organization/:corporation/inquiry/admission', {
    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