---
agentTools:
  projectIndex: https://docs.xkit.co/llms.txt
---

# getPlatform

Retrieve information about the current platform

### Parameters

None

### Returns

`Promise<Platform>`
A `Promise` that resolves to the currently configured [`Platform`](https://docs.xkit.co/reference/platform).

The `Platform` is the currently configured application, as set up with the `domain` when initializing xkit.js (or including from an Xkit subdomain). All of the information returned from this call can be configured in the [Xkit Developer Portal](https://app.xkit.co).

This information can be retrieved whether or not the user has a currently active session.

[block:code]
{
  "codes": [
    {
      "code": "const platform = await xkit.getPlatform()\n\nconsole.log(platform)\n\n// {\n//   name: \"MyApp\",\n//   slug: \"my-app\",\n//   website: \"https://myapp.com\",\n//   login_redirect_url: \"https://myapp.com/login\"\n// }",
      "language": "javascript"
    }
  ]
}
[/block]