Auth

Authenticate

Authenticate using one of the following methods:

  • Service Keys (headers): Provide both x-service-key and x-service-secret headers
  • User Keys (header): Provide x-user-key header
  • OAuth2 Client Credentials (form body): POST application/x-www-form-urlencoded with grant_type=client_credentials, client_id=<service_key>, client_secret=<service_secret> (RFC 6749 §4.4). Compatible with standard OAuth2 client libraries such as Grafana Infinity, Datadog, Splunk, and ServiceNow.

Returns access and refresh tokens for subsequent API calls.

post/auth/token

Request

  • Base URL
    https://am1.portal.api.nasuni.com
  • Auth
    • API key in header x-service-key and API key in header x-service-secret
    • or API key in header x-user-key
    • or OAuth 2
      Client credentials
      Token URL/auth/token
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body application/x-www-form-urlencoded

grant_type'client_credentials' required

Must be client_credentials.

client_idstring required

Portal service key (equivalent to the x-service-key header).

client_secretstring uuid required

Portal service secret (equivalent to the x-service-secret header).

Response

Authentication successful

access_tokenstring required
refresh_tokenstring required
token_typestring
expires_ininteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.