github.com/twilio/twilio-go@v1.20.1/rest/flex/v1/docs/InteractionsApi.md (about)

     1  # InteractionsApi
     2  
     3  All URIs are relative to *https://flex-api.twilio.com*
     4  
     5  Method | HTTP request | Description
     6  ------------- | ------------- | -------------
     7  [**CreateInteraction**](InteractionsApi.md#CreateInteraction) | **Post** /v1/Interactions | 
     8  [**FetchInteraction**](InteractionsApi.md#FetchInteraction) | **Get** /v1/Interactions/{Sid} | 
     9  
    10  
    11  
    12  ## CreateInteraction
    13  
    14  > FlexV1Interaction CreateInteraction(ctx, optional)
    15  
    16  
    17  
    18  Create a new Interaction.
    19  
    20  ### Path Parameters
    21  
    22  This endpoint does not need any path parameter.
    23  
    24  ### Other Parameters
    25  
    26  Other parameters are passed through a pointer to a CreateInteractionParams struct
    27  
    28  
    29  Name | Type | Description
    30  ------------- | ------------- | -------------
    31  **Channel** | [**interface{}**](interface{}.md) | The Interaction's channel.
    32  **Routing** | [**interface{}**](interface{}.md) | The Interaction's routing logic.
    33  **InteractionContextSid** | **string** | The Interaction context sid is used for adding a context lookup sid
    34  
    35  ### Return type
    36  
    37  [**FlexV1Interaction**](FlexV1Interaction.md)
    38  
    39  ### Authorization
    40  
    41  [accountSid_authToken](../README.md#accountSid_authToken)
    42  
    43  ### HTTP request headers
    44  
    45  - **Content-Type**: application/x-www-form-urlencoded
    46  - **Accept**: application/json
    47  
    48  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    49  [[Back to Model list]](../README.md#documentation-for-models)
    50  [[Back to README]](../README.md)
    51  
    52  
    53  ## FetchInteraction
    54  
    55  > FlexV1Interaction FetchInteraction(ctx, Sid)
    56  
    57  
    58  
    59  
    60  
    61  ### Path Parameters
    62  
    63  
    64  Name | Type | Description
    65  ------------- | ------------- | -------------
    66  **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
    67  **Sid** | **string** | The SID of the Interaction resource to fetch.
    68  
    69  ### Other Parameters
    70  
    71  Other parameters are passed through a pointer to a FetchInteractionParams struct
    72  
    73  
    74  Name | Type | Description
    75  ------------- | ------------- | -------------
    76  
    77  ### Return type
    78  
    79  [**FlexV1Interaction**](FlexV1Interaction.md)
    80  
    81  ### Authorization
    82  
    83  [accountSid_authToken](../README.md#accountSid_authToken)
    84  
    85  ### HTTP request headers
    86  
    87  - **Content-Type**: Not defined
    88  - **Accept**: application/json
    89  
    90  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
    91  [[Back to Model list]](../README.md#documentation-for-models)
    92  [[Back to README]](../README.md)
    93