Skip to main content
POST
/
v1
/
platforms
Register platform
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({name: '<string>', slug: '<string>', auth0_client_id: '<string>'})
};

fetch('https://api.keystoneos.xyz/v1/platforms', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "auth0_org_id": "<string>",
  "name": "<string>",
  "slug": "<string>",
  "status": "<string>",
  "logo_url": "<string>",
  "support_email": "<string>",
  "support_url": "<string>",
  "onboarding_completed_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token. See Authentication for details.

Body

application/json

Register a new platform. Also creates a 'development' environment.

name
string
required
slug
string
required
auth0_client_id
string
required

Response

Successful Response

id
string<uuid>
required
auth0_org_id
string | null
required
name
string
required
slug
string
required
status
string
required
logo_url
string | null
required
support_email
string | null
required
support_url
string | null
required
onboarding_completed_at
string<date-time> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required