# validate_service_params

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_helpers/validate_service_params)

Validate parameters for service URL generation.

## Signature

```python
validate_service_params(
    port: int,
    expires_in_seconds: int,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `port` | `int` | Yes | Target port inside the sandbox. |
| `expires_in_seconds` | `int` | Yes | Token TTL. |

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/70260f8db5b02e286a22f9524fba283a2513859a/python/langsmith/sandbox/_helpers.py#L49)