You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ID or name slug the app you'd like to retrieve. For example, Slack's unique app ID is `app_OkrhR1`, and its name slug is `slack`.
320
+
321
+
You can find the app's ID in the response from the [List apps](#list-apps) endpoint, and the name slug under the **Authentication** section of any [app page](https://pipedream.com/apps).
322
+
323
+
---
324
+
325
+
`oauth_app_id`**string** (_optional_)
326
+
327
+
The ID of the custom [OAuth app](/connect/quickstart#creating-a-custom-oauth-client) you'd like to retrieve accounts for.
328
+
329
+
---
330
+
331
+
`external_user_id`**string** (_optional_)
332
+
333
+
[The external user ID](/connect/api/#external-users) in your system that you want to retrieve accounts for.
334
+
335
+
---
336
+
317
337
`include_credentials`**boolean** (_optional_)
318
338
319
339
Pass `include_credentials=true` as a query-string parameter to include the account credentials in the response
@@ -456,118 +476,6 @@ curl -X GET "https://api.pipedream.com/v1/connect/{project_id}/accounts/?include
The `oauth_app_id` for [OAuth apps](/connect/quickstart#creating-a-custom-oauth-client) or [name slug](/connect/quickstart/#find-your-apps-name-slug) for key-based apps
476
-
477
-
##### Query parameters
478
-
479
-
`include_credentials`**boolean** (_optional_)
480
-
481
-
Pass `include_credentials=true` as a query-string parameter to include the account credentials in the response
include_credentials:true, // set to true to include credentials
520
-
});
521
-
522
-
// Parse and return the data you need. These may contain credentials,
523
-
// which you should never return to the client
524
-
```
525
-
</Tabs.Tab>
526
-
<Tabs.Tab>
527
-
```bash
528
-
# First, obtain an OAuth access token
529
-
curl -X POST https://api.pipedream.com/v1/oauth/token \
530
-
-H "Content-Type: application/json" \
531
-
-d '{
532
-
"grant_type": "client_credentials",
533
-
"client_id": "{oauth_client_id}",
534
-
"client_secret": "{oauth_client_secret}"
535
-
}'
536
-
537
-
# The response will include an access_token. Use it in the Authorization header below.
538
-
539
-
curl -X GET "https://api.pipedream.com/v1/connect/{project_id}/apps/{app_id}/accounts?include_credentials=true" \
540
-
-H "Authorization: Bearer {access_token}"
541
-
```
542
-
</Tabs.Tab>
543
-
</Tabs>
544
-
545
-
##### Example response
546
-
547
-
```json
548
-
[
549
-
{
550
-
"id": "apn_WYhMlrz",
551
-
"name": null,
552
-
"external_id": "user-abc-123",
553
-
"healthy": true,
554
-
"dead": false,
555
-
"app": {
556
-
"id": "oa_aw4ib2",
557
-
"name_slug": "airtable_oauth",
558
-
"name": "Airtable",
559
-
"auth_type": "oauth",
560
-
"description": "Airtable is a low-code platform to build next-gen apps. Move beyond rigid tools, operationalize your critical data, and reimagine workflows with AI.",
include_credentials:true, // set to true to include credentials
784
-
});
785
-
786
-
// Parse and return the data you need. These may contain credentials,
787
-
// which you should never return to the client
788
-
```
789
-
</Tabs.Tab>
790
-
<Tabs.Tab>
791
-
```bash
792
-
# First, obtain an OAuth access token
793
-
curl -X POST https://api.pipedream.com/v1/oauth/token \
794
-
-H "Content-Type: application/json" \
795
-
-d '{
796
-
"grant_type": "client_credentials",
797
-
"client_id": "{oauth_client_id}",
798
-
"client_secret": "{oauth_client_secret}"
799
-
}'
800
-
801
-
# The response will include an access_token. Use it in the Authorization header below.
802
-
803
-
curl -X GET "https://api.pipedream.com/v1/connect/{project_id}/users/{external_user_id}/accounts?include_credentials=true" \
804
-
-H "Authorization: Bearer {access_token}"
805
-
```
806
-
</Tabs.Tab>
807
-
</Tabs>
808
-
809
-
##### Example response (without account credentials)
810
-
811
-
```json
812
-
[
813
-
{
814
-
"id": "apn_WYhM5ov",
815
-
"name": null,
816
-
"external_id": "user-abc-123",
817
-
"healthy": true,
818
-
"dead": false,
819
-
"app": {
820
-
"id": "oa_aw4ib2",
821
-
"name_slug": "airtable_oauth",
822
-
"name": "Airtable",
823
-
"auth_type": "oauth",
824
-
"description": "Airtable is a low-code platform to build next-gen apps. Move beyond rigid tools, operationalize your critical data, and reimagine workflows with AI.",
"description": "Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.",
##### Example Response (with `include_credentials=true`)
867
-
868
-
```json
869
-
[
870
-
{
871
-
"id": "apn_WYhM5ov",
872
-
"name": null,
873
-
"external_id": "user-abc-123",
874
-
"healthy": true,
875
-
"dead": false,
876
-
"app": {
877
-
"id": "oa_aw4ib2",
878
-
"name_slug": "airtable_oauth",
879
-
"name": "Airtable",
880
-
"auth_type": "oauth",
881
-
"description": "Airtable is a low-code platform to build next-gen apps. Move beyond rigid tools, operationalize your critical data, and reimagine workflows with AI.",
"description": "Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.",
0 commit comments