> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes. # List Resources GET https://%7BYour_Space_Name%7D.signalwire.com/api/fabric/resources Lists every supported Fabric resource in your SignalWire project, regardless of type. Use it for project-wide inventory or when you do not yet know whether an ID belongs to an AI Agent, script, SIP resource, or another resource type. Use a type-specific collection such as [SWML Scripts](/docs/apis/rest/swml-scripts/list-swml-scripts) or [SIP Credentials](/docs/apis/rest/sip-credentials/list-sip-credentials) to create resources or work with their full configuration. #### Permissions The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_. [Learn more about API scopes](/docs/platform/your-signalwire-api-space). Reference: https://signalwire.com/docs/apis/rest/resources/list-resources ## Authentication - `Authorization` header (basic auth, required) — SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ``` ## Response ### 200 The request has succeeded. - `data` (list of ResourceResponse, required) — An array of objects that contain a list of Resource data - `links` (ResourcePaginationResponse, required) — Object containing pagination links ## Errors ### 401 Unauthorized Error Access is unauthorized. - `error` (enum, required) - Allowed values: `Unauthorized` ### 404 Not Found Error The server cannot find the requested resource. - `error` (enum, required) - Allowed values: `Not Found` ### 500 Internal Server Error An internal server error occurred. - `error` (enum, required) - Allowed values: `Internal Server Error` ## Types ### ResourceResponse ### ResourcePaginationResponse - `self` (string, required) — The link to the current page - `first` (string, required) — The link to the first page - `next` (string, optional) — The link to the next page - `prev` (string, optional) — The link to the previous page ### ResourceResponseAI - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `ai_agent` - `ai_agent` (AIAgent, required) — An object containing the response data of the AI Agent ### ResourceResponseCallFlow - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `call_flow` - `call_flow` (CallFlow, required) — An object containing the response data of the Call Flow ### ResourceResponseCXMLWebhook - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `cxml_webhook` - `cxml_webhook` (CXMLWebhook, required) — An object containing the response data of the cXML Webhook ### ResourceResponseCXMLScript - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `cxml_script` - `cxml_script` (CXMLScript, required) — An object containing the response data of the cXML Script ### ResourceResponseCXMLApplication - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `cxml_application` - `cxml_application` (CxmlApplication, required) — An object containing the response data of the cXML Application ### ResourceResponseDialogFlowAgent - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `dialogflow_agent` - `dialogflow_agent` (DialogflowAgent, required) — An object containing the response data of the Dialogflow Agent ### ResourceResponseFSConnector - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `freeswitch_connector` - `freeswitch_connector` (FreeswitchConnector, required) — An object containing the response data of the FreeSWITCH Connector ### ResourceResponseRelayApp - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `relay_application` - `relay_application` (RelayApplication, required) — An object containing the response data of the Relay Application ### ResourceResponseSipEndpoint - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `sip_endpoint` - `sip_endpoint` (FabricSipEndpoint, required) — An object containing the response data of the SIP Endpoint ### ResourceResponseSipGateway - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `sip_gateway` - `sip_gateway` (SipGateway, required) — An object containing the response data of the SIP Gateway ### ResourceResponseSubscriber - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `subscriber` - `subscriber` (Subscriber, required) — An object containing the response data of the [Subscriber](/docs/platform/subscribers). ### ResourceResponseSWMLWebhook - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `swml_webhook` - `swml_webhook` (SWMLWebhook, required) — An object containing the response data of the SWML Webhook ### ResourceResponseSWMLScript - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `swml_script` - `swml_script` (SwmlScript, required) — An object containing the response data of the SWML Script ### ResourceResponseConferenceRoom - `id` (string, required) — Unique ID of the Resource. - `project_id` (string, required) — Unique ID of the Project. - `display_name` (string, required) — Display name of the Resource - `created_at` (datetime, required) — Date and time when the resource was created. - `updated_at` (datetime, required) — Date and time when the resource was updated. - `type` (enum, required) — The type of Resource - Allowed values: `swml_script` - `conference_room` (ConferenceRoom, required) — An object containing the response data of the Conference Room ### AIAgent Creates an AI agent that conducts voice conversations using automatic speech recognition (ASR), large language models (LLMs), and text-to-speech (TTS) synthesis. The agent processes caller speech in real-time, generates contextually appropriate responses, and can execute custom functions to interact with external systems through SignalWire AI Gateway (SWAIG). See the [SWML `ai` method reference](/docs/swml/reference/calling/ai) for the complete configuration contract. - `prompt` (AiAgentPrompt, required) — Defines the AI agent's personality, goals, behaviors, and instructions for handling conversations. The prompt establishes how the agent should interact with callers, what information it should gather, and how it should respond to various scenarios. It is recommended to write prompts using markdown formatting. See [`ai.prompt` in the SWML reference](/docs/swml/reference/calling/ai#aiprompt). - `agent_id` (string, required) — Unique ID of an AI Agent. - `name` (string, required) — Name of the AI Agent. - `hints` (list of string, optional) — Hints help the AI agent understand certain words or phrases better. Words that can commonly be misinterpreted can be added to the hints to help the AI speak more accurately. See [`ai.hints` in the SWML reference](/docs/swml/reference/calling/ai#aihints). - `languages` (list of AiAgentLanguagesItems, optional) — An array of JSON objects defining supported languages in the conversation. Mutually exclusive with `multilingual`: if both are set, `multilingual` is used and this array is ignored. See [`ai.languages` in the SWML reference](/docs/swml/reference/calling/ai#ailanguages). - `params` (AiAgentParams, optional) — A JSON object containing parameters as key-value pairs. See [`ai.params` in the SWML reference](/docs/swml/reference/calling/ai#aiparams). - `post_prompt` (AiAgentPostPrompt, optional) — The final set of instructions and configuration settings to send to the agent. See [`ai.post_prompt` in the SWML reference](/docs/swml/reference/calling/ai#aipost_prompt). - `pronounce` (list of AiAgentPronounceItems, optional) — An array of JSON objects to clarify the AI's pronunciation of words or expressions. See [`ai.pronounce` in the SWML reference](/docs/swml/reference/calling/ai#aipronounce). - `SWAIG` (AiAgentSwaig, optional) — An array of JSON objects to create user-defined functions/endpoints that can be executed during the dialogue. See [`ai.SWAIG` in the SWML reference](/docs/swml/reference/calling/ai#aiswaig). ### CallFlow - `id` (string, required) — Unique ID of a Call Flow. - `title` (string, required) — The name of the Call Flow - `flow_data` (CallFlowFlowData, optional) — Call Flow Builder state, stored as an opaque JSON object. Produced and consumed by the SignalWire Call Flow Builder UI; not used by SWML execution. - `relayml` (CallFlowRelayml, optional) — The calling SWML document this Call Flow executes. Uses [calling SWML methods](/docs/swml/reference/calling). - `document_version` (integer, optional) — The current revision of the call flow. Every update must increase this number. ### CXMLWebhook - `id` (string, required) — Unique ID of the CXML Webhook. - `name` (string, required) — Name of the CXML Webhook. - `used_for` (enum, required) — Used for of the CXML Webhook. - Allowed values: `calling`, `messaging` - `primary_request_url` (string, required) — Primary request url of the CXML Webhook. - `primary_request_method` (enum, required) — Primary request method of the CXML Webhook. - Allowed values: `GET`, `POST` - `fallback_request_url` (string, required, nullable) — Fallback request url of the CXML Webhook. - `fallback_request_method` (enum, required) — Fallback request method of the CXML Webhook. - Allowed values: `GET`, `POST` - `status_callback_url` (string, required, nullable) — Status callback url of the CXML Webhook. - `status_callback_method` (enum, required) — Status callback method of the CXML Webhook. - Allowed values: `GET`, `POST` ### CXMLScript - `id` (string, required) — Unique ID of a cXML Script. - `contents` (string, required) — The cXML script contents - `request_count` (integer, required) — The amout of times the cXML script has been requested - `last_accessed_at` (datetime, required, nullable) — The date and time when the cXML script was last accessed - `request_url` (string, required) — The URL where the cXML script can be accessed - `script_type` (enum, required) — The script type the cXML Script is used for - Allowed values: `calling`, `messaging` - `display_name` (string, required) — Display name of the cXML Script Fabric Resource - `status_callback_url` (string, optional, nullable) — The url that will send status updates for the cXML Script - `status_callback_method` (enum, optional) — HTTP method for status callback URL - Allowed values: `GET`, `POST` ### CxmlApplication - `id` (string, required) — Unique ID of the cXML Application. - `project_id` (string, required) — Project ID for the cXML Application - `friendly_name` (string, required) — Display name of the cXML Application - `voice_url` (string, required, nullable) — URL to handle incoming calls - `voice_method` (enum, required) — HTTP method for voice URL - Allowed values: `GET`, `POST` - `voice_fallback_url` (string, required, nullable) — Fallback URL for voice errors - `voice_fallback_method` (enum, required) — HTTP method for voice fallback URL - Allowed values: `GET`, `POST` - `status_callback` (string, required, nullable) — URL to receive status callbacks - `status_callback_method` (enum, required) — HTTP method for status callbacks - Allowed values: `GET`, `POST` - `sms_url` (string, required, nullable) — URL to handle incoming messages - `sms_method` (enum, required) — HTTP method for SMS URL - Allowed values: `GET`, `POST` - `sms_fallback_url` (string, required, nullable) — Fallback URL for SMS errors - `sms_fallback_method` (enum, required) — HTTP method for SMS fallback URL - Allowed values: `GET`, `POST` - `sms_status_callback` (string, required, nullable) — URL to receive SMS status callbacks - `sms_status_callback_method` (enum, required) — HTTP method for SMS status callbacks - Allowed values: `GET`, `POST` ### DialogflowAgent - `id` (string, required) — Unique ID of a Dialogflow Agent. - `say_enabled` (boolean, optional) — Whether to enable the 'say' feature - `say` (string, optional) — Default message to say - `voice` (string, optional) — Voice to use for speech - `display_name` (string, optional) — Display name of the Dialogflow Agent - `dialogflow_reference_id` (string, optional) — Dialogflow reference ID - `dialogflow_reference_name` (string, optional) — Dialogflow reference name ### FreeswitchConnector - `id` (string, required) — Unique ID of a FreeSWITCH Connector. - `name` (string, optional) — Name of the FreeSWITCH Connector - `caller_id` (string, optional, nullable) — Caller ID for the connector - `send_as` (string, optional, nullable) — Send as identifier ### RelayApplication - `id` (string, required) — Unique ID of a Relay Application. - `name` (string, required) — Name of the Relay Application - `topic` (string, required) — Topic of the Relay Application - `call_status_callback_url` (string, required, nullable) — Call status callback URL ### FabricSipEndpoint - `id` (string, required) — The id of the Sip Endpoint - `username` (string, required) — The username of the Sip Endpoint - `caller_id` (string, required) — The caller ID that will showup when dialing from this Sip Endpoint - `send_as` (string, required) — The Sip username that will show up on the calle's side. Overrides the username. - `ciphers` (list of enum, required) — Ciphers that can be enabled for calls on this Sip Endpoint. - Allowed values: `AEAD_AES_256_GCM_8`, `AES_256_CM_HMAC_SHA1_80`, `AES_CM_128_HMAC_SHA1_80`, `AES_256_CM_HMAC_SHA1_32`, `AES_CM_128_HMAC_SHA1_32` - `codecs` (list of enum, required) — Codecs that can be enabled for calls on this Sip Endpoint. - Allowed values: `PCMU`, `PCMA`, `G722`, `G729`, `OPUS`, `OPUS@48000H@20I`, `OPUS@24000H@20I`, `OPUS@16000H@20I`, `OPUS@8000H@20I`, `VP8`, `H264` - `encryption` (enum, required) — The set encryption type on the Sip Endpoint. - Allowed values: `required`, `optional`, `default` - `call_handler` (enum, required) — Specify how the SIP endpoint will handle outbound calls. - **default**: The SIP endpoint will pull the outbound policy setting from the [SIP Profile Settings](https://my.signalwire.com?page=sip_profile/edit). This allows centralized management of outbound call behavior across multiple endpoints from a single configuration. - **passthrough**: The SIP endpoint will be allowed to dial PSTN numbers. This permits outbound calling to traditional phone numbers without restrictions. - **block-pstn**: The SIP endpoint will be blocked from dialing PSTN numbers. Use this to restrict the endpoint from initiating calls to the public telephone network. - **resource**: Outbound calls from this SIP endpoint will dial the specified resource and execute its instructions. Requires setting `calling_handler_resource_id` to a valid resource. This enables custom call handling workflows for outbound calls. - Allowed values: `default`, `passthrough`, `block-pstn`, `resource` - `calling_handler_resource_id` (string, required, nullable) — If `call_handler` is set to `resource`, this field expects the id of the set resouce. Will be `null` otherwise. ### SipGateway - `id` (string, required) — Unique ID of the SIP Gateway. - `uri` (string, required) — The URI for the SIP Gateway. - `name` (string, required) — Display name of the SIP Gateway. - `ciphers` (list of enum, required) — List of supported SIP ciphers. - Allowed values: `AEAD_AES_256_GCM_8`, `AES_256_CM_HMAC_SHA1_80`, `AES_CM_128_HMAC_SHA1_80`, `AES_256_CM_HMAC_SHA1_32`, `AES_CM_128_HMAC_SHA1_32` - `codecs` (list of enum, required) — List of supported codecs. - Allowed values: `PCMU`, `PCMA`, `G722`, `G729`, `OPUS`, `OPUS@48000H@20I`, `OPUS@24000H@20I`, `OPUS@16000H@20I`, `OPUS@8000H@20I`, `VP8`, `H264` - `encryption` (enum, required) — Specifies the encryption requirement. - Allowed values: `required`, `optional`, `default` ### Subscriber - `id` (string, required) — Unique ID of the Subscriber. - `email` (string, required) — Email of the Subscriber. - `first_name` (string, required) — First name of the Subscriber. - `last_name` (string, required) — Last name of the Subscriber. - `display_name` (string, required) — Display name of the Subscriber. - `job_title` (string, required) — Job title of the Subscriber. - `timezone` (string, required) — Timezone of the Subscriber. - `country` (string, required) — Country of the Subscriber. - `company_name` (string, required) — Company name of the Subscriber. ### SWMLWebhook - `id` (string, required) — Unique ID of the SWML Webhook. - `name` (string, required) — Name of the SWML Webhook. - `used_for` (enum, required) — Indicates whether this SWML Webhook handles inbound calls or inbound messages. Determines the payload SignalWire POSTs to `primary_request_url`. - Allowed values: `calling`, `messaging` - `primary_request_url` (string, required) — Primary URL SignalWire fetches the SWML document from when the webhook fires. The webhook payload depends on `used_for`: for `calling`, see the [SWML inbound call webhook](/docs/apis/rest/webhooks/inbound-call-webhook); for `messaging`, see the [SWML inbound message webhook](/docs/apis/rest/webhooks/inbound-message-webhook). - `primary_request_method` (enum, required) — Primary request method of the SWML Webhook. - Allowed values: `GET`, `POST` - `fallback_request_url` (string, required, nullable) — Fallback URL SignalWire fetches the SWML document from if the primary URL fails. Receives the same payload as `primary_request_url` — see the [SWML inbound call webhook](/docs/apis/rest/webhooks/inbound-call-webhook) or [SWML inbound message webhook](/docs/apis/rest/webhooks/inbound-message-webhook) depending on `used_for`. - `fallback_request_method` (enum, required) — Fallback request method of the SWML Webhook. - Allowed values: `GET`, `POST` - `status_callback_url` (string, required, nullable) — URL to receive message status callback events for outbound messages sent by this webhook (`reply` or `send_sms`). See the [Message status callback](/docs/apis/rest/webhooks/message-status-callback) webhook for the payload your URL will receive. - `status_callback_method` (enum, required) — Status callback method of the SWML Webhook. - Allowed values: `GET`, `POST` ### SwmlScript A SWML Script — either a [Calling Script](#schema/CallingSwmlScript) for inbound or outbound calls, or a [Messaging Script](#schema/MessagingSwmlScript) for inbound SMS or MMS messages. The `script_type` field on each script (`"calling"` or `"messaging"`) identifies which kind it is. ### ConferenceRoom - `id` (string, required) — The unique id of the Conference Room - `name` (string, required) — The name of the Conference Room - `description` (string, required) — The descrption of the Conference Room - `display_name` (string, required) — Display name of the Conference Room - `max_members` (integer, required) — Maximum number of members allowed in the conference room - `quality` (enum, required, default: 720p) — The viudeo quality of the Conference Room. - Allowed values: `1080p`, `720p` - `fps` (enum, required) — The frames-per-second (fps) of the participants videos in the conference. - Allowed values: `30`, `20` - `join_from` (datetime, required, nullable) — The time users are allowed to start joining the conference. Joining before this time will result in failure to join the conference. - `join_until` (datetime, required, nullable) — The time users are allowed to until the conference is locked. Attempting to join the conference after the set time will result in failure to join the conference. - `remove_at` (datetime, required, nullable) — The time to remove all participants from the conference. - `remove_after_seconds_elapsed` (integer, required, nullable) — The amount of time in seconds to remove a particpant from a conference after they join. - `layout` (enum, required) — The video layout of the conference. - Allowed values: `grid-responsive`, `grid-responsive-mobile`, `highlight-1-responsive`, `1x1`, `2x1`, `2x2`, `5up`, `3x3`, `4x4`, `5x5`, `6x6`, `8x8`, `10x10` - `record_on_start` (boolean, required) — Starts recording when the conference starts. - `tone_on_entry_and_exit` (boolean, required) — Plays a tone when a participant joins or leaves the conference. - `room_join_video_off` (boolean, required) — Turns the conference video off when the participant joins the room if `true`. - `user_join_video_off` (boolean, required) — Turns the participants video off when the participant joins the room if `true`. - `enable_room_previews` (boolean, required) — Enables live video room previews for the conference. - `sync_audio_video` (boolean, required, nullable) — Syncs the participants audio and video. - `meta` (ConferenceRoomMeta, required) — Metadata of the conference. - `prioritize_handraise` (boolean, required) — Indicator if the Conference Room will prioritize showing participants utilizing the hand raised feature. ### AiAgentPrompt Defines the AI agent's personality, goals, behaviors, and instructions for handling conversations. The prompt establishes how the agent should interact with callers, what information it should gather, and how it should respond to various scenarios. It is recommended to write prompts using markdown formatting. See [`ai.prompt` in the SWML reference](/docs/swml/reference/calling/ai#aiprompt). ### AiAgentLanguagesItems ### AiAgentParams A JSON object containing parameters as key-value pairs. See [`ai.params` in the SWML reference](/docs/swml/reference/calling/ai#aiparams). ### AiAgentPostPrompt The final set of instructions and configuration settings to send to the agent. See [`ai.post_prompt` in the SWML reference](/docs/swml/reference/calling/ai#aipost_prompt). ### AiAgentPronounceItems ### AiAgentSwaig An array of JSON objects to create user-defined functions/endpoints that can be executed during the dialogue. See [`ai.SWAIG` in the SWML reference](/docs/swml/reference/calling/ai#aiswaig). ### CallFlowFlowData Call Flow Builder state, stored as an opaque JSON object. Produced and consumed by the SignalWire Call Flow Builder UI; not used by SWML execution. ### CallFlowRelayml The calling SWML document this Call Flow executes. Uses [calling SWML methods](/docs/swml/reference/calling). ### CallingSwmlScript A SWML Script that handles inbound or outbound calls. The `contents` field carries a [calling SWML document](/docs/swml/reference/calling). - `id` (string, required) — Unique ID of a SWML Script. - `display_name` (string, required) — The displayed name of the SWML script. - `script_type` (enum, required) — Set to `calling` for SWML Scripts that handle inbound or outbound calls. - Allowed values: `calling` - `request_url` (string, required) — URL where this SWML Script is hosted. - `contents` (CallingSwmlScriptContents, required) — The calling SWML document executed when this script runs. Uses [calling SWML methods](/docs/swml/reference/calling). - `status_callback_url` (string, optional) — URL that receives status callbacks for messages sent or calls made by this script. - `status_callback_method` (enum, optional) — HTTP method used for status callbacks. - Allowed values: `POST` ### MessagingSwmlScript A SWML Script that handles inbound SMS or MMS messages. The `contents` field carries a [messaging SWML document](/docs/swml/reference/messaging). - `id` (string, required) — Unique ID of a SWML Script. - `display_name` (string, required) — The displayed name of the SWML script. - `script_type` (enum, required) — Set to `messaging` for SWML Scripts that handle inbound SMS or MMS messages. - Allowed values: `messaging` - `request_url` (string, required) — URL where this SWML Script is hosted. - `contents` (MessagingSwmlScriptContents, required) — The messaging SWML document executed when this script runs. Uses [messaging SWML methods](/docs/swml/reference/messaging). ### ConferenceRoomMeta Metadata of the conference. ### CallingSwmlScriptContents The calling SWML document executed when this script runs. Uses [calling SWML methods](/docs/swml/reference/calling). ### MessagingSwmlScriptContents The messaging SWML document executed when this script runs. Uses [messaging SWML methods](/docs/swml/reference/messaging). ## Examples **Response** ```json { "data": [ { "ai_agent": { "agent_id": "a87db7ed-8ebe-42e4-829f-8ba5a4152f54", "name": "Support Assistant", "prompt": { "text": "You are a helpful customer support assistant." } }, "created_at": "2024-05-06T12:20:00Z", "display_name": "Support Assistant", "id": "993ed018-9e79-4e50-b97b-984bd5534095", "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780", "type": "ai_agent", "updated_at": "2024-05-06T12:25:00Z" } ], "links": { "self": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50", "first": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50" } } ``` **SDK Code** ```python Resource list import requests url = "https://{your_space_name}.signalwire.com/api/fabric/resources" response = requests.get(url, auth=("", "")) print(response.json()) ``` ```javascript Resource list const url = 'https://{your_space_name}.signalwire.com/api/fabric/resources'; const credentials = btoa(":"); const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Resource list package main import ( "fmt" "net/http" "io" ) func main() { url := "https://{your_space_name}.signalwire.com/api/fabric/resources" req, _ := http.NewRequest("GET", url, nil) req.SetBasicAuth("", "") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Resource list require 'uri' require 'net/http' url = URI("https://{your_space_name}.signalwire.com/api/fabric/resources") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request.basic_auth("", "") response = http.request(request) puts response.read_body ``` ```java Resource list import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://{your_space_name}.signalwire.com/api/fabric/resources") .basicAuth("", "") .asString(); ``` ```php Resource list request('GET', 'https://{your_space_name}.signalwire.com/api/fabric/resources', [ 'headers' => [ ], 'auth' => ['', ''], ]); echo $response->getBody(); ``` ```csharp Resource list using RestSharp; using RestSharp.Authenticators; var client = new RestClient("https://{your_space_name}.signalwire.com/api/fabric/resources"); client.Authenticator = new HttpBasicAuthenticator("", ""); var request = new RestRequest(Method.GET); IRestResponse response = client.Execute(request); ``` ```swift Resource list import Foundation let credentials = Data(":".utf8).base64EncodedString() let headers = ["Authorization": "Basic \(credentials)"] let request = NSMutableURLRequest(url: NSURL(string: "https://{your_space_name}.signalwire.com/api/fabric/resources")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```