{ "opencollection": "1.0.0", "info": { "name": "Dashboard Allowlists Users API", "version": "1.0.0" }, "items": [ { "info": { "name": "Users", "type": "folder" }, "items": [ { "info": { "name": "Get a user by Id (deprecated - use /environments/{environmentId}/users/{userId} instead)", "type": "http" }, "http": { "method": "GET", "url": "https://app.dynamicauth.com/api/v0/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a user by Id (deprecated - use /environments/{environmentId}/users/{userId} instead)" }, { "info": { "name": "Update a user (deprecated - use /environments/{environmentId}/users/{userId} instead)", "type": "http" }, "http": { "method": "PUT", "url": "https://app.dynamicauth.com/api/v0/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update a user (deprecated - use /environments/{environmentId}/users/{userId} instead)" }, { "info": { "name": "Delete user (deprecated - use /environments/{environmentId}/users/{userId} instead)", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.dynamicauth.com/api/v0/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete user (deprecated - use /environments/{environmentId}/users/{userId} instead)" }, { "info": { "name": "Get a user by Id", "type": "http" }, "http": { "method": "GET", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/:userId", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get a user by Id" }, { "info": { "name": "Update a user", "type": "http" }, "http": { "method": "PUT", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/:userId", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update a user" }, { "info": { "name": "Delete user", "type": "http" }, "http": { "method": "DELETE", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/:userId", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete user" }, { "info": { "name": "Get the access token for a user OAuth account", "type": "http" }, "http": { "method": "GET", "url": "https://app.dynamicauth.com/api/v0/oauthAccounts/:oauthAccountId/accessToken", "params": [ { "name": "oauthAccountId", "value": "", "type": "path", "description": "UUID of a user oauth account" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get the access token for a user OAuth account" }, { "info": { "name": "Get all users for an environment", "type": "http" }, "http": { "method": "GET", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "filter", "value": "", "type": "query" }, { "name": "orderBy", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query", "description": "The number of items to skip before starting to collect the result set" }, { "name": "limit", "value": "", "type": "query", "description": "The numbers of items to return" }, { "name": "includeSessions", "value": "", "type": "query", "description": "When true, we will return the most recent list of sessions for each user in the list." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get all users for an environment" }, { "info": { "name": "Creates a new user", "type": "http" }, "http": { "method": "POST", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new user" }, { "info": { "name": "Revoke sessions by user ID", "type": "http" }, "http": { "method": "POST", "url": "https://app.dynamicauth.com/api/v0/users/:userId/sessions/revoke", "params": [ { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "This endpoint is deprecated. Use /environments/{environmentId}/users/{userId}/sessions/revoke instead." }, { "info": { "name": "Revoke sessions by user ID", "type": "http" }, "http": { "method": "POST", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/:userId/sessions/revoke", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Revoke sessions by user ID" }, { "info": { "name": "Get all sessions for a user by user ID", "type": "http" }, "http": { "method": "GET", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/:userId/sessions", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "userId", "value": "", "type": "path", "description": "UUID of the user" }, { "name": "limit", "value": "", "type": "query", "description": "The number of sessions to return" }, { "name": "offset", "value": "", "type": "query", "description": "The number of sessions to skip before starting to collect the result set" }, { "name": "revoked", "value": "", "type": "query", "description": "Filter sessions by revoked status. If true, only revoked sessions are returned. If false, only non-revoked sessions are returned. If not provided, all sessions are returned." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get all sessions for a user by user ID" }, { "info": { "name": "Creates many new users", "type": "http" }, "http": { "method": "POST", "url": "https://app.dynamicauth.com/api/v0/environments/:environmentId/users/bulk", "params": [ { "name": "environmentId", "value": "", "type": "path", "description": "ID of the environment" }, { "name": "upsert", "value": "", "type": "query", "description": "Update user data if user already exists" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates many new users" } ] } ], "bundled": true }