ServiceConnect["service"]
creates a connection to an external service.
ServiceConnect["service","id"]
uses the specified connection identifier.


ServiceConnect
Listing of Supported External Services »ServiceConnect["service"]
creates a connection to an external service.
ServiceConnect["service","id"]
uses the specified connection identifier.
Details and Options


- ServiceConnect works with a growing number of external services.
- Use $Services to see all available services, also given in the guide "Listing of Supported External Services".
- If it succeeds in making a connection, ServiceConnect returns a ServiceObject.
- Use ServiceObjects[] to list all available service objects.
- ServiceConnect["service"] will attempt to reopen the last used connection to a particular service if it exists; otherwise, it creates a new connection.
- ServiceConnect["service","id"] attempts to restore connection with the specified ID. If the connection cannot be restored, a new connection will be created with the provided ID.
- ServiceConnect["service","New"] forces a new connection to be created to a particular service.
- The following options can be provided:
-
Authentication Automatic the authentication credentials or method SaveConnection False whether to store the connection in user's cloud account - Services are typically authenticated through API keys, username and passwords or OAuth authorization.
- Possible settings for Authentication include:
-
Automatic attempt to use saved credentials or give a dialog "Dialog" give authentication parameters via a dialog Environment["var"] retrieve authentication from environment variables SystemCredential["key"] retrieve authentication information from secure storage SystemCredentialData[…] stored authentication data SecuredAuthenticationKey[…] give an OAuth-secured authentication key assoc provide explicit credentials - Use delayed settings such as Authentication:>SystemCredential["key"] to delay the evaluation of stored credentials.
Examples
open all close allBasic Examples (1)
Scope (4)
Authenticate a Reddit account to retrieve information:
Retrieve information about the "r/space" subreddit:
Create a service object with a specified ID:
Verify the stored authentication information:
Retrieve a service object with a specific ID:
If multiple service objects for a service exist, ServiceConnect will pick the last used one:
List all the existing service objects for OpenAI:
Let ServiceConnect pick the most recently used object:
Delete a service object created with ServiceConnect:
Options (3)
Authentication (2)
Connect to the OpenAI API using the Authentication option to send an API key:
Connect to the Reddit API, authenticating with a particular Reddit app instead of the default Wolfram Connector app:
Text
Wolfram Research (2014), ServiceConnect, Wolfram Language function, https://reference.wolfram.com/language/ref/ServiceConnect.html (updated 2025).
CMS
Wolfram Language. 2014. "ServiceConnect." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/ServiceConnect.html.
APA
Wolfram Language. (2014). ServiceConnect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ServiceConnect.html
BibTeX
@misc{reference.wolfram_2025_serviceconnect, author="Wolfram Research", title="{ServiceConnect}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/ServiceConnect.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_serviceconnect, organization={Wolfram Research}, title={ServiceConnect}, year={2025}, url={https://reference.wolfram.com/language/ref/ServiceConnect.html}, note=[Accessed: 11-August-2025]}