ShopGo
1.0.0
1.0.0
  • Welcome
  • Developer Guides
    • Order Processing
    • Webhooks
      • Calculate Shipping Rates
  • Management API
    • Introduction
    • Authentication
      • Using User API Key
      • Using Platform API Key
    • Authorization
    • Objects
      • Primitives
      • Order
      • Payment
      • Shipment
      • Purchase
      • Adjustment
      • Charge
      • Attribute
    • API Endpoints
  • Platform API
    • Introduction
    • Authentication
    • Objects
    • API Endpoints
      • Tenant
Powered by GitBook
On this page
  • Overview
  • Retrieve User API Key
  • Test Authentication

Was this helpful?

  1. Management API
  2. Authentication

Using User API Key

PreviousAuthenticationNextUsing Platform API Key

Last updated 4 years ago

Was this helpful?

Overview

The dashboard user's API key can be obtained by calling a key endpoint and providing the user's email and password (see below).

Once a key is obtained, it can be used to authenticate requests as described in .

Retrieve User API Key

POST https://api.shopgo.me/v1/management/auth/key

Use this endpoint to retrieve the API key of a dashboard user.

Request Body

Name
Type
Description

email

string

password

string

{
    "result": "success",
    "payload": {
        "api_key": "<key-here>",
        "user_id": "<user-id>",        
        "tenant_id": "<tenant-id>",
        "tenant": <Tenant>,
        "user": <DashboardUser>,
    }
}
{
    "result": "error",
    "description": "incorrect credentials"
}

Test Authentication

GET https://api.shopgo.me/v1/management/auth/test

Use this endpoint to test authentication. The same request format can be used to authenticate access to all management API endpoints.

Headers

Name
Type
Description

X-API-KEY

string

dashboard user API key

{
    "result": "success"
}
{
    "result": "error",
    "description": "unauthorized"
}

For a full breakdown of response objects, see and .

Retrieve API Key
Test API Key
Tenant
DashboardUser