---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Connections

A connection gives workspace code access to a provider by name. SegmentStream holds the credential.

## Declare the provider

Look up the service in the integrations catalog, then declare the managed preset or custom API in connections/connections.py. Choose a key that identifies the account’s purpose. Deploy the declaration before attempting authorization. Actions and pipelines use the same key when they need the provider.

[Integration catalog](https://segmentstream.com/integrations)

[ ](https://segmentstream.com/integrations)· [Connections SDK](https://segmentstream.com/docs/sdk/connections)

## Authorize access

Open Connections in the intended workspace and select the provider. Check the requested account and scopes. An account owner completes the provider’s consent screen or supplies its required credential.

Connections declared in code and authorised here. The credentials stay with the platform, never in the repository.

## Verify the connection

For the starter’s google_ads connection, open the authorization flow and then inspect its status. With your own provider, substitute its key and follow its credential flow. Test one read using the intended account. If consent succeeds but the read fails, check that the provider identity can access the specific resource and that its granted scopes cover the operation.

Terminal

```
segmentstream connection authorize google_ads --open
segmentstream connection get google_ads
```

[Read as Markdown ↗](https://segmentstream.com/docs/connections.md)
