cURL
curl --request POST \ --url https://staging-api.puppetvendors.com/portal/auth/login \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "email": "<string>", "password": "<string>", "shopDomain": "<string>" } '
Authenticate a vendor user with email and password; returns a JWT
Documentation IndexFetch the complete documentation index at: https://dev.puppetvendors.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt
Use this file to discover all available pages before exploring further.
{ "success": true, "data": { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expiresIn": 86400, "scope": "vendor", "shopDomain": "my-store.myshopify.com", "user": { "id": "507f1f77bcf86cd799439011", "email": "vendor@example.com", "vendorId": "507f1f77bcf86cd799439012", "vendor": "Acme Co" } } }
{ "success": false, "error": { "message": "Invalid credentials", "code": "INVALID_CREDENTIALS" } }
{ "success": false, "error": { "message": "Account not approved", "code": "NOT_APPROVED" } }
{ "success": false, "error": { "message": "Too many login attempts", "code": "RATE_LIMITED" } }
curl -X POST "https://staging-api.puppetvendors.com/portal/auth/login" \ -H "Content-Type: application/json" \ -d '{ "email": "vendor@example.com", "password": "secret123", "shopDomain": "my-store.myshopify.com" }'
Was this page helpful?