TradeAware
  • Welcome to TradeAware User Guide
    • Getting Started
  • Using the TradeAware Web App
    • Upload and Analyzing Plots
    • Connect with your supply chain
    • Risk Assessment
    • Transaction Management
    • Document Management
    • Plot Upload and Analysis Trouble Shooting
    • How-to videos
  • Using the TradeAware API
    • API Access and Business Account Registration
    • Authentication
      • Rotate client secret
      • Endpoints enabled for programmatic access
    • Plot Uploading and Analysis Requests
    • Commercial network management
    • Transaction Management
    • API reference
      • Auth
      • Plots
        • Analyses of a specific Plot
        • Batch
      • Analyses
      • Attachments
      • Business invitations
      • Business connections
      • Transactions
        • Create a Transaction
        • Retrieve Transactions
          • Get a transaction by id
          • List all transactions
        • Modify an existing Transaction
          • Update a Transaction
          • Add a Transaction Component
          • Update a Transaction Component
          • Delete a Transaction Component
        • Delete a Transaction
        • Submit a Transaction
        • Retrieve DDS Data
      • Risk Assessments
        • Supplier Risk Assessments
          • Create a Supplier Risk Assessment
          • Update a Supplier Risk Assessment
          • Retrieve Supplier Risk Assessments
            • Get a supplier risk assessment by id
            • Get all supplier risk assessments
          • Retrieve the history
        • Plot Risk Assessments
          • Create a Plot Risk Assessment
          • Update a Plot Risk Assessment
          • Retrieve Plot Risk Assessments
            • Get a plot risk assessment by id
            • Get all plot risk assessments
          • Retrieve the history
      • Survey responses
      • Health
      • Version
      • Specification
  • Additional Resources
    • FAQs
    • Contact Support
    • Terms and Conditions
Powered by GitBook
On this page
  1. Using the TradeAware API
  2. API reference

Auth

PreviousAPI referenceNextPlots

Last updated 9 months ago

Retrieve an access token for programmatic access via OAuth2.0 Client Credentials Grant.

post

Token endpoint for OAuth2.0 Client Credentials Grant using your OAuth2.0 machine-to-machine client credentials for programmatic access to this API. See https://datatracker.ietf.org/doc/html/rfc6749#section-4.4

Authorizations
Body
grant_typestringRequired

The OAuth2.0 Grant Type that shall be used for authorization. Supported values: 'client_credentials'

Example: client_credentials
client_idstringRequired

The client id of your OAuth2.0 machine-to-machine client

Example: ABCAAAAAAAAAAAAAAAAAAAAAAAAAA123
client_secretstringRequired

The client secret of your OAuth2.0 machine-to-machine client

Example: supersecret
Responses
200
Access token response as defined in https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.3
application/json
400Error
401Error
post
POST /auth/machine-to-machine-clients/token HTTP/1.1
Host: api.tradeaware.live-eo.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "grant_type": "client_credentials",
  "client_id": "ABCAAAAAAAAAAAAAAAAAAAAAAAAAA123",
  "client_secret": "supersecret"
}
{
  "access_token": "text",
  "token_type": "Bearer",
  "expires_in": 86400,
  "scope": "create:example manage:users read:example"
}