{ "opencollection": "1.0.0", "info": { "name": "The Things Stack — Application Server AppAs UserAccess API", "version": "v3.36" }, "items": [ { "info": { "name": "UserAccess", "type": "folder" }, "items": [ { "info": { "name": "List the API keys for this user.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/users/:user_ids.user_id/api-keys", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "user_ids.email", "value": "", "type": "query", "description": "Secondary identifier, which can only be used in specific requests." }, { "name": "order", "value": "", "type": "query", "description": "Order the results by this field path.\nDefault ordering is by ID. Prepend with a minus (-) to reverse the order." }, { "name": "limit", "value": "", "type": "query", "description": "Limit the number of results per page." }, { "name": "page", "value": "", "type": "query", "description": "Page number for pagination. 0 is interpreted as 1." } ] }, "docs": "List the API keys for this user." }, { "info": { "name": "Create an API key scoped to this user.\nUser API keys can give access to the user itself, as well as\nany organization, application, gateway and OAuth client this user is a collaborator of.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/users/:user_ids.user_id/api-keys", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." } ] }, "docs": "Create an API key scoped to this user.\nUser API keys can give access to the user itself, as well as\nany organization, application, gateway and OAuth client this user is a collaborator of." }, { "info": { "name": "Update the rights of an API key of the user.\nThis method can also be used to delete the API key, by giving it no rights.\nThe caller is required to have all assigned or/and removed rights.", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/users/:user_ids.user_id/api-keys/:api_key.id", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "api_key.id", "value": "", "type": "path", "description": "Immutable and unique public identifier for the API key.\nGenerated by the Access Server." } ] }, "docs": "Update the rights of an API key of the user.\nThis method can also be used to delete the API key, by giving it no rights.\nThe caller is required to have all assigned or/and removed rights." }, { "info": { "name": "Get a single API key of this user.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/users/:user_ids.user_id/api-keys/:key_id", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "key_id", "value": "", "type": "path", "description": "Unique public identifier for the API key." }, { "name": "user_ids.email", "value": "", "type": "query", "description": "Secondary identifier, which can only be used in specific requests." } ] }, "docs": "Get a single API key of this user." }, { "info": { "name": "Delete a single API key of this user.", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/users/:user_ids.user_id/api-keys/:key_id", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "key_id", "value": "", "type": "path" }, { "name": "user_ids.email", "value": "", "type": "query", "description": "Secondary identifier, which can only be used in specific requests." } ] }, "docs": "Delete a single API key of this user." }, { "info": { "name": "Create a login token that can be used for a one-time login as a user.", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/users/:user_ids.user_id/login-tokens", "params": [ { "name": "user_ids.user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "user_ids.email", "value": "", "type": "query", "description": "Secondary identifier, which can only be used in specific requests." }, { "name": "skip_email", "value": "", "type": "query", "description": "Skip sending the login token to the user by email.\nThis field is only effective when the login token is created by an admin user." } ] }, "docs": "Create a login token that can be used for a one-time login as a user." }, { "info": { "name": "List the rights the caller has on this user.", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/users/:user_id/rights", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "This ID shares namespace with organization IDs." }, { "name": "email", "value": "", "type": "query", "description": "Secondary identifier, which can only be used in specific requests." } ] }, "docs": "List the rights the caller has on this user." } ] } ], "bundled": true }