SubContractorHub API Reference

Base URL

https://api.virtualsaleportal.com/

Login

Request

POST /api/auth/login

Body Parameters

Parameter Type Description
email string The email of the user
password string The password of the user

Response

No response

Get Organizations

Request

GET /api/organizations

Authentication

Bearer Token: TOKEN

Response

No response

Get Contacts

Request

GET /api/125/contacts

Authentication

Bearer Token: TOKEN

Response

No response

Create Contact

Request

POST /api/125/contacts

Authentication

Bearer Token: TOKEN

Body Parameters

Parameter Type Description
first_name string The first name of the contact
last_name string The last name of the contact
email string The email of the contact
phone string The phone number of the contact
street string The street address of the contact
city string The city of the contact
postal_code string The postal code of the contact
state string The state of the contact
organization string The ID of the organization the contact belongs to
job_type string The job type of the contact
territory string The territory of the contact