Skip to content

Commit ba30caa

Browse files
Update api.mdx
1 parent 769ace4 commit ba30caa

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs-v2/pages/connect/api.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ The ID of the [OAuth app](/connect/quickstart#create-a-pipedream-oauth-client) y
311311

312312
Pass `include_credentials=true` as a query-string parameter to include the account credentials in the response.
313313

314+
<Callout type="warning">
315+
Never return user credentials to the client
316+
</Callout>
317+
314318
<Callout type="info">
315319
To retrieve the credentials for any account in `production` for OAuth apps (Slack, Google Sheets, etc), the connected account must be using [your own OAuth client](/connect/oauth-clients#using-a-custom-oauth-client). You can only retrieve end user credentials for accounts that are using Pipedream's OAuth clients in `development`. [Learn more here](/connect/oauth-clients#using-pipedream-oauth).
316320
</Callout>
@@ -490,7 +494,7 @@ curl -X GET \
490494
"accounts":[
491495
{
492496
"id": "apn_MGhvgnX",
493-
"name": "dannyroosevelt",
497+
"name": "gcostanza",
494498
"external_id": "user-abc-123",
495499
"healthy": true,
496500
"dead": null,
@@ -549,6 +553,10 @@ The ID of the account you want to retrieve
549553

550554
Pass `include_credentials=true` as a query-string parameter to include the account credentials in the response.
551555

556+
<Callout type="warning">
557+
Never return user credentials to the client
558+
</Callout>
559+
552560
<Callout type="info">
553561
To retrieve the credentials for any account in `production` for OAuth apps (Slack, Google Sheets, etc), the connected account must be using [your own OAuth client](/connect/oauth-clients#using-a-custom-oauth-client). You can only retrieve end user credentials for accounts that are using Pipedream's OAuth clients in `development`. [Learn more here](/connect/oauth-clients#using-pipedream-oauth).
554562
</Callout>
@@ -683,7 +691,7 @@ curl -X GET \
683691
},
684692
"expires_at": "2024-08-01T05:04:03.000Z",
685693
"project_id": 279440,
686-
"user_id": "danny",
694+
"user_id": "gcostanza",
687695
"error": null,
688696
"last_refreshed_at": null,
689697
"next_refresh_at": "2024-08-01T04:17:33.000Z"

0 commit comments

Comments
 (0)