Hi an welcome to the Velma Rest API. We have created this with the goal of allowing our integrators, partners and subscribers a way to control the retrieval and submission of data that better suits their needs.
We have really tried to provide a well defined comprehenisve API. All feedback is welcome, please send to api.velma.com
The API will be using OAuth2.
OAuth2 Code Example Here
Velma's base API url is https://api.velma.com/api/route Please replace route with the call you are making.
https://api.velma.com/api/contacts?orderBy=lastname
Please click on the view calls list link. Select the call you are interested in and a variety of samples will be provided in the calls documentation.
We are using standard HTTP Verbs
GET
- To retrieve a resource or a collection of resources
POST
- To create a resource
PATCH
- To modify a resource
PUT
- To set a resource
DELETE
- To delete a resource
Please click on the view calls list link. Select the call you are interested in and an example of the responses will be available for your review.
Successs:
200 OK
- Call was a successError:
400 bad_request
- Something is wrong with the request415 Incorrect Media Type
- The media type is not valid for the call401 unauthorized
- Authentication credentials have failed403 forbidden
- The user does not have access to the request500 internal_server_error
429 Too Many Requests
- Exceeded rate limitsErrors will be provided in the return call.
You will receive an object with a message stating exactly what is wrong.
Message: "No property 'lastName1' exists in type 'Contact'"
Documention Coming Soon
Code Here
All data fetching will utilize properties of the objects inside the data array. If you see an object referenced then you can use it to filter, sort, include etc. We will go over the individual methods below.
"FirstName"
: "Rod","LastName"
: "Laver","WorkPhone"
: "555-3456",/li>
"OtherPhone"
: "555-4567","ReferredBy"
: "LaverRod","PreferredCommunication"
: "Email","DateOfBirth"
: "2015-08-24T14:22:46.1391601-06:00"You can filter the data using the following operators.
eq
- equal to!=
- not equal togt
- greater thanlt
- less thange
- greater than or equal tole
- less than or equal tostartswith
- starts with endswith
- ends withcontains
- contains
https://api.velma.com/api/contacts?filterBy=lastname&filteroper=eq&filterval=djokovic
https://api.velma.com/api/contacts?filterBy=ranking&filteroper=gt&filterval=1
https://api.velma.com/api/contacts?filterString=ranking,gt,1;lastName,startswith,c
https://api.velma.com/api/contacts?orderby=firstname
https://api.velma.com/api/contacts/1/loans?orderby=ranking
https://api.velma.com/api/contacts/1/loans?orderby=-ranking
https://api.velma.com/api/contacts/1/loans?orderBy=-ranking,lastname
The api provides a way to only select the fields you want from the collection of targeted objects. Utilize the properties separated by commas to ask for specific fields.
https://api.velma.com/api/contacts?fields=lastname,firstname,ranking
Extending fields are for users with higher roles (Eg: Corp Admins) that, if they know about them can request non-public fields. Note: If these are mixed with the fields query parameter you can request a couple public fields with one special field. If not mixed then the entire object plus your special field will be requested.
https://api.velma.com/api/contacts?extfields=special
https://api.velma.com/api/contacts?fields=firstname,lastname&extfields=special
Query Parameter(s): pageCount and page
https://api.velma.com/api/contacts?pageCount=10&page=2fields=lastname,firstname,ranking