{{ __('locale.developers.contact_groups_api') }}
{!! __('locale.description.contact_groups_api', ['brandname' => config('app.name')]) !!}

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{ route('api_http.contacts.index') }}
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('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
Create a group

Creates a new group object. {{ config('app.name') }} returns the created group object with each request.

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{config('app.url')}}/api/http/contacts
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('locale.developers.parameter') }} {{ __('locale.labels.required') }} {{ __('locale.labels.type') }} {{ __('locale.labels.description') }}
name
{{ __('locale.labels.yes') }}
string The name of the group
Example request
                                
curl -X POST {{ route('api_http.contacts.store') }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"Codeglen","api_token":"{{ Auth::user()->api_token }}"}'
                                
                            
Returns

Returns a contact object if the request was successful.

                                
{
    "status": "success",
    "data": "group data with all details",
}
                                
                            

If the request failed, an error object will be returned.

                                
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
                                
                            
View a group

Retrieves the information of an existing group. You only need to supply the unique group ID that was returned upon creation or receiving.

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{config('app.url')}}/api/http/contacts/{group_id}/show/
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('locale.developers.parameter') }} {{ __('locale.labels.required') }} {{ __('locale.labels.type') }} {{ __('locale.labels.description') }}
group_id
{{ __('locale.labels.yes') }}
string Contact Groups uid
Example request
                                
curl -X POST {{ route('api_http.contacts.show', ['group_id' => '6065ecdc9184a']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
                                
                            
Returns

Returns a contact object if the request was successful.

                                
{
    "status": "success",
    "data": "group data with all details",
}
                                
                            

If the request failed, an error object will be returned.

                                
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
                                
                            
Update a group

Updates an existing group. You only need to supply the unique ID that was returned upon creation.

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{config('app.url')}}/api/http/contacts/{group_id}
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('locale.developers.parameter') }} {{ __('locale.labels.required') }} {{ __('locale.labels.type') }} {{ __('locale.labels.description') }}
group_id
{{ __('locale.labels.yes') }}
string Contact Groups uid
name
{{ __('locale.labels.yes') }}
string New group name
Example request
                                
curl -X PATCH {{ route('api_http.contacts.update', ['contact' => '6065ecdc9184a']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"name":"Codeglen Update","api_token":"{{ Auth::user()->api_token }}"}'
                                
                            
Returns

Returns a contact object if the request was successful.

                                
{
    "status": "success",
    "data": "groups data with all details",
}
                                
                            

If the request failed, an error object will be returned.

                                
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
                                
                            
Delete a group

Deletes an existing group. You only need to supply the unique id that was returned upon creation.

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{config('app.url')}}/api/http/contacts/{group_id}
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('locale.developers.parameter') }} {{ __('locale.labels.required') }} {{ __('locale.labels.type') }} {{ __('locale.labels.description') }}
group_id
{{ __('locale.labels.yes') }}
string Contact Groups uid
Example request
                                
curl -X DELETE {{ route('api_http.contacts.destroy', ['contact' => '6065ecdc9184a']) }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
                                
                            
Returns

Returns a contact object if the request was successful.

                                
{
    "status": "success",
    "data": "null",
}
                                
                            

If the request failed, an error object will be returned.

                                
{
    "status": "error",
    "message" : "A human-readable description of the error."
}
                                
                            
View all groups

{{ __('locale.developers.api_endpoint') }}

                                
                                    {{config('app.url')}}/api/http/contacts/
                                
                            
Example request
                                
curl -X GET {{ route('api_http.contacts.index') }} \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"api_token":"{{ Auth::user()->api_token }}"}'
                                
                            
Returns

Returns a contact object if the request was successful.

                                
{
    "status": "success",
    "data": "group data with pagination",
}
                                
                            

If the request failed, an error object will be returned.

                                
{
    "status": "error",
    "message" : "A human-readable description of the error."
}