cURL
curl --request GET \ --url https://api.comm.com/api/v1/voice/numbers \ --header 'Authorization: Bearer <token>'
{ "data": [ { "id": "<string>", "number": 123, "voice_account_id": "<string>", "inbound_agent_id": "<string>", "sip_config": "<string>", "disallowed_countries": "<string>", "team_id": "<string>", "voice_provider": "<string>", "voice_provider_id": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
if ($request->user()->isAdmin()) { return NumberResource::collection( Number::orderBy('created_at', 'desc')->get() ); }
Array of NumberResource
NumberResource
Show child attributes