> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-native-c/functions/createwithid.md).

# CreateWithId

Creates (forwards) a proxy on the specified port, using a given proxy ID, plan, and action type.

{% code overflow="wrap" %}

```c
int CreateWithId(int port, char* proxyId, char* plan, char* actionType)
```

{% endcode %}

***

## Parameters

* **port** (int): Local port to bind.
* **proxyId** (char\*): ID of the proxy to forward. This also serves as the requestId used for receiving success/failure status in event callbacks.
* **plan** (char\*): Plan ID (default "1").
* **actionType** (char\*): Action type of the user (default "manual").

## Return Value

* int: 0 on success; non-zero on error.

## Example

```c
// example

int rc = CreateWithId(60000, "677e2c4517f247bc89dd66a4", "1", "manual");

```
