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

# has_synthesize_token

> Check if Synthesize Bio API Token is Set.

Checks whether a Synthesize Bio API token is currently set in the
environment. Useful for conditional code that requires an API token.

## Usage

```r theme={null}
has_synthesize_token()
```

## Returns

Logical, TRUE if token is set, FALSE otherwise.

## Examples

```r theme={null}
# Check if token is set
if (!has_synthesize_token()) 
  # Prompt for token if not set
  set_synthesize_token()
```

## Source

Generated from [`R/key-handlers.R`](https://github.com/synthesizebio/rsynthbio/blob/main/R/key-handlers.R) and the package help files in `man/`.
