{{ __('locale.developers.api_endpoint') }}
{{ route('api_http.contacts.index') }}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.description') }} |
---|---|---|
api_token |
{{ __('locale.labels.yes') }}
|
API Token From Developers option. Get API Token |
Accept |
{{ __('locale.labels.yes') }}
|
Set to application/json |
Content-Type |
{{ __('locale.labels.yes') }}
|
Set to application/json |
Creates a new contact object. {{ config('app.name') }} returns the created contact object with each request.
{{ __('locale.developers.api_endpoint') }}
{{config('app.url')}}/api/http/contacts/{group_id}/store
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.type') }} | {{ __('locale.labels.description') }} |
---|---|---|---|
group_id |
{{ __('locale.labels.yes') }}
|
string | Contact Groups uid |
PHONE |
{{ __('locale.labels.yes') }}
|
number | The phone number of the contact. |
OTHER_FIELDS |
{{ __('locale.labels.no') }}
|
string | All Contact's other fields: FIRST_NAME (?), LAST_NAME (?),... (depending on the contact group fields configuration) |
curl -X POST {{ route('api_http.contact.store', ['group_id' => '6065ecdc9184a']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}",
"PHONE":"8801721970168",
"FIRST_NAME":"Jhon",
"LAST_NAME":"Doe",
}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "contacts data with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
Retrieves the information of an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation or receiving.
{{ __('locale.developers.api_endpoint') }}
{{config('app.url')}}/api/http/contacts/{group_id}/search/{uid}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.type') }} | {{ __('locale.labels.description') }} |
---|---|---|---|
group_id |
{{ __('locale.labels.yes') }}
|
string | Contact Groups uid |
uid |
{{ __('locale.labels.yes') }}
|
string | Contact uid |
curl -X POST {{ route('api_http.contact.search', ['group_id' => '6065ecdc9184a', 'uid' => '606732aec8705']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "contacts data with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
Updates an existing contact. You only need to supply the unique uid of contact and contact group uid that was returned upon creation.
{{ __('locale.developers.api_endpoint') }}
{{config('app.url')}}/api/http/contacts/{group_id}/update/{uid}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.type') }} | {{ __('locale.labels.description') }} |
---|---|---|---|
group_id |
{{ __('locale.labels.yes') }}
|
string | Contact Groups uid |
uid |
{{ __('locale.labels.yes') }}
|
string | Contact uid |
PHONE |
{{ __('locale.labels.yes') }}
|
number | The phone number of the contact. |
OTHER_FIELDS |
{{ __('locale.labels.no') }}
|
string | All Contact's other fields: FIRST_NAME (?), LAST_NAME (?),... (depending on the contact group fields configuration) |
curl -X PATCH {{ route('api_http.contact.update', ['group_id' => '6065ecdc9184a', 'uid' => '606732aec8705']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}",
"PHONE":"8801721970168",
"FIRST_NAME":"Jhon",
"LAST_NAME":"Doe",
}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "contacts data with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
Deletes an existing contact. You only need to supply the unique contact uid and group uid that was returned upon creation.
{{ __('locale.developers.api_endpoint') }}
{{config('app.url')}}/api/http/contacts/{group_id}/delete/{uid}
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.type') }} | {{ __('locale.labels.description') }} |
---|---|---|---|
group_id |
{{ __('locale.labels.yes') }}
|
string | Contact Groups uid |
uid |
{{ __('locale.labels.yes') }}
|
string | Contact uid |
curl -X DELETE {{ route('api_http.contact.delete', ['group_id' => '6065ecdc9184a', 'uid' => '606732aec8705']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "contacts data with all details",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}
{{ __('locale.developers.api_endpoint') }}
{{config('app.url')}}/api/http/contacts/{group_id}/all
{{ __('locale.developers.parameter') }} | {{ __('locale.labels.required') }} | {{ __('locale.labels.type') }} | {{ __('locale.labels.description') }} |
---|---|---|---|
group_id |
{{ __('locale.labels.yes') }}
|
string | Contact Groups uid |
curl -X POST {{ route('api_http.contact.all', ['group_id' => '6065ecdc9184a']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
Returns a contact object if the request was successful.
{
"status": "success",
"data": "contacts data with pagination",
}
If the request failed, an error object will be returned.
{
"status": "error",
"message" : "A human-readable description of the error."
}