{{ __('locale.labels.profile') }} {{ __('locale.labels.api') }}
{!! __('locale.description.profile_api', ['brandname' => config('app.name')]) !!}

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

                                
                                    {{ route('api_http.profile.me') }}
                                
                            
{{ __('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
View sms unit

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

                                
                                    {{ route('api_http.profile.balance') }}
                                
                            
Example request
                                
curl -X GET {{ route('api_http.profile.balance') }} \
-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": "sms unit with all details",
}
                                
                            

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

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

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

                                
                                    {{ route('api_http.profile.me') }}
                                
                            
Example request
                                
curl -X GET {{ route('api_http.profile.me') }} \
-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": "profile data with all details",
}
                                
                            

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

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