> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Clients.InfrastructureApiClient.CreateIncidentAsync(ResQ.Clients.CreateIncidentRequest,System.Threading.CancellationToken)

### [ResQ.Clients](./ResQ.Clients.md "ResQ.Clients").[InfrastructureApiClient](./ResQ.Clients.InfrastructureApiClient.md "ResQ.Clients.InfrastructureApiClient")

## InfrastructureApiClient.CreateIncidentAsync(CreateIncidentRequest, CancellationToken) Method

Creates an incident record.
Uses timeout and circuit-breaker handling without replaying the mutation on failure.

```csharp theme={null}
public System.Threading.Tasks.Task<ResQ.Clients.IncidentResponse> CreateIncidentAsync(ResQ.Clients.CreateIncidentRequest request, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```

#### Parameters

<a name="ResQ.Clients.InfrastructureApiClient.CreateIncidentAsync(ResQ.Clients.CreateIncidentRequest,System.Threading.CancellationToken).request" />

`request` [CreateIncidentRequest](./ResQ.Clients.CreateIncidentRequest.md "ResQ.Clients.CreateIncidentRequest")

<a name="ResQ.Clients.InfrastructureApiClient.CreateIncidentAsync(ResQ.Clients.CreateIncidentRequest,System.Threading.CancellationToken).ct" />

`ct` [System.Threading.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken "System.Threading.CancellationToken")

#### Returns

[System.Threading.Tasks.Task\<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")[IncidentResponse](./ResQ.Clients.IncidentResponse.md "ResQ.Clients.IncidentResponse")[>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")
