{ "opencollection": "1.0.0", "info": { "name": "WorkOS admin-portal directories API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "directories", "type": "folder" }, "items": [ { "info": { "name": "List Directories", "type": "http" }, "http": { "method": "GET", "url": "https://api.workos.com/directories", "params": [ { "name": "before", "value": "", "type": "query", "description": "An object ID that defines your place in the list. When the ID is not present, you are at the end of the list." }, { "name": "after", "value": "", "type": "query", "description": "An object ID that defines your place in the list. When the ID is not present, you are at the end of the list." }, { "name": "limit", "value": "", "type": "query", "description": "Upper limit on the number of objects to return, between `1` and `100`." }, { "name": "order", "value": "", "type": "query", "description": "Order the results by the creation time." }, { "name": "organization_id", "value": "", "type": "query", "description": "Filter Directories by their associated organization." }, { "name": "search", "value": "", "type": "query", "description": "Searchable text to match against Directory names." }, { "name": "domain", "value": "", "type": "query", "description": "Filter Directories by their associated domain." } ] }, "docs": "Get a list of all of your existing directories matching the criteria specified." }, { "info": { "name": "Get a Directory", "type": "http" }, "http": { "method": "GET", "url": "https://api.workos.com/directories/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique identifier for the Directory." } ] }, "docs": "Get the details of an existing directory." }, { "info": { "name": "Delete a Directory", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.workos.com/directories/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "Unique identifier for the Directory." } ] }, "docs": "Permanently deletes an existing directory. It cannot be undone." } ] } ], "bundled": true }