Alphaus | Documentation
WebsiteRepoTech blog (JP)Tech blog (EN)
ALM v2.0
ALM v2.0
  • Mobingi Documentation (v2.0)
  • Getting started
  • Guides and tutorials
    • Stack lifecycle
      • Deploy stack
      • Manage stack
    • Docker
      • Custom Docker containers
    • Others
      • Blue-green deployment
      • How to use RDS
      • Environment variables
      • Custom installation script
      • SSH into your container
    • FAQ
  • API Reference
    • Overview
    • Stacks
      • List stacks
      • Create stack
      • Describe stack
      • Update stack
      • Delete stack
      • Deploy code
      • Put lifecycle hook
      • Get lifecycle hook
      • Restart instance
      • Describe ServiceConfig
      • Update ServerConfig
    • Vendor credentials
      • List credentials
      • Save credentials
      • Delete credentials
Powered by GitBook
On this page
  • Endpoint
  • Version
  • OAuth authentication

Was this helpful?

  1. API Reference

Overview

PreviousFAQNextStacks

Last updated 6 years ago

Was this helpful?

Mobingi API is organized around REST. Our API has predictable, resource-oriented URLs. We support CORS (Cross-Origin Resource Sharing), allowing you to interact securely with our API.

Endpoint

Version

The current available API version is v2 only.

OAuth authentication

In order to interact with the API, your application must authenticate. Mobingi API handles this through OAuth. An OAuth token functions as a complete authentication request. In effect, it acts as a substitute for a username and password pair.

To get an OAuth token, make a POST request to:

POST /v2/access_token

Parameters

Type

Required

Details

client_id

string

yes

client_secret

string

yes

grant_type

string

yes

This value is always client_credentials

Example Request:

curl -X POST https://api.mobingi.com/v2/access_token \
-H "Content-Type: application/json" \
-d '{"grant_type":"client_credentials","client_id":"lg-5447826c870e7-xBV0OSJEN-tm","client_secret":"sFVYDoe08fxPjNgYvauYGOYCeXbOTE","grant_type":"client_credentials"}'

You can then start making API requests by passing the access_token value to the Authorization header.

Authorization: Bearer eyJ0eXAiOiJQiLCJhbGciOMeXzQfME...
https://api.mobingi.com