{ "opencollection": "1.0.0", "info": { "name": "Guardian Password API", "version": "1.0.0" }, "items": [ { "info": { "name": "Password", "type": "folder" }, "items": [ { "info": { "name": "Sign in using user identifier with password or PIN", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v2/signin", "headers": [ { "name": "tenant-id", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Authenticates a user using a user identifier (username, email, or phone number) with either\npassword or PIN. Supports both token and code response types. On success, returns tokens\nand optionally sets authentication cookies.\n\n**Authentication methods:**\n- **Password:** Provide `password` with user identifier. Uses client's post authenticate\n user API for validation.\n- **PIN:** Provide `pin` with user identifier for PIN/pattern authentication.\n\n**Response types:**\n- `token`: Returns access_token" }, { "info": { "name": "Signup a new user using username and password", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/signup", "headers": [ { "name": "tenant-id", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "API to sign up a new user using username and password.\n\nIf the username already exists, the API will return a failure, otherwise a new user is created with the given username and password.\n\nThis API uses the clients get user API to ascertain if the username exists or not.\n\nThis API uses the clients post user API to create a new user account with the provided credentials.\n" }, { "info": { "name": "Signin existing user using username and password", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/signin", "headers": [ { "name": "tenant-id", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "This API signs in an existing user using username and password.\n\nThis API uses the clients post authenticate user API to validate if the username password combination is correct.\n" } ] } ], "bundled": true }