Back to top

Datasembly

Datasembly API specification.

Auth

This section describes the current Datasembly authentication approach using Auth0. If your organization is still using legacy authentication see the exports section.

Resource

POST/oauth/token

Example URI

POST https://auth.datasembly.com/oauth/token
Request
HideShow
Headers
Content-Type: application/json
Body
{
  "client_id": "ID",
  "client_secret": "SECRET",
  "audience": "https://app.datasembly.com/",
  "grant_type": "client_credentials"
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "client_id": {
      "description": "The organization client ID provided to you by Datasembly",
      "type": "string"
    },
    "client_secret": {
      "description": "The organization client secret provided to you by Datasembly",
      "type": "string"
    },
    "audience": {
      "description": "Only one allowed value, as shown in the example.",
      "type": "string",
      "enum": [
        "https://app.datasembly.com/"
      ]
    },
    "grant_type": {
      "description": "Only one allowed value, as shown in the example.",
      "type": "string",
      "enum": [
        "client_credentials"
      ]
    }
  },
  "required": [
    "client_id",
    "client_secret",
    "audience",
    "grant_type"
  ]
}
Response  200
HideShow
Headers
content-type: application/json
Body
{
  "access_token": "TOKEN",
  "scope": "read:exports",
  "expires_in": 86400,
  "token_type": "Bearer"
}

Generated by aglio on 19 Oct 2023