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

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

                                
                                    {{ route('api.profile.me') }}
                                
                            
{{ __('locale.developers.parameters') }}
{{ __('locale.developers.parameter') }} {{ __('locale.labels.required') }} {{ __('locale.labels.description') }}
Authorization
{{ __('locale.labels.yes') }}
When calling our API, send your api token with the authentication type set as Bearer (Example: Authorization: Bearer {api_token})
Accept
{{ __('locale.labels.yes') }}
Set to application/json
View sms unit

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

                                
                                    {{ route('api.profile.balance') }}
                                
                            
Example request
                                
curl -X GET {{ route('api.profile.balance') }} \
-H 'Authorization: Bearer {{ Auth::user()->api_token }}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
                                
                            
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.profile.me') }}
                                
                            
Example request
                                
curl -X GET {{ route('api.profile.me') }} \
-H 'Authorization: Bearer {{ Auth::user()->api_token }}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
                                
                            
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."
}