Skip to content

aside: false outline: false ​

Auth, app management, and app hosting APIs for Slop Poe.


Login with Poe API key​

POST
/auth/login

Request Body​

application/json
JSON
{
"api_key": "string"
}

Responses​

Login result

application/json
JSON
{
"success": true,
"user": {
"user_id": "string",
"username": "string",
"display_name": "string",
"profile_picture": "string"
}
}

Playground​

Body

Samples​


Get current session​

GET
/auth/session

Responses​

Session result

application/json
JSON
{
"success": true,
"user": {
"user_id": "string",
"username": "string",
"display_name": "string",
"profile_picture": "string"
}
}

Playground​

Samples​


Logout and clear session​

POST
/auth/logout

Responses​

Logout success

application/json
JSON
{
"success": true
}

Playground​

Samples​


Get current points balance​

GET
/auth/usage

Authorizations​

Responses​

Usage result

application/json
JSON
{
"success": true,
"pointBalance": 0
}

Playground​

Samples​


Get usage history​

GET
/auth/points-history

Authorizations​

Responses​

Points history result

application/json
JSON
{
"success": true,
"history": [
{
"bot_name": "string",
"creation_time": 0,
"query_id": "string",
"cost_points": 0,
"usage_type": "string",
"additionalProperties": "string"
}
]
}

Playground​

Samples​


List available models​

GET
/auth/models

Authorizations​

Responses​

Models list result

application/json
JSON
{
"success": true,
"models": [
{
"id": "string",
"description": "string",
"owned_by": "string",
"metadata": {
"display_name": "string",
"additionalProperties": "string"
},
"additionalProperties": "string"
}
]
}

Playground​

Samples​


List connected external accounts​

GET
/auth/connected-accounts

Authorizations​

Responses​

Connected accounts result

application/json
JSON
{
"success": true,
"accounts": [
{
"provider_id": "string",
"external_username": "string",
"external_display_name": "string"
}
]
}

Playground​

Samples​


Unlink an external account​

DELETE
/auth/connected-accounts/{providerId}

Authorizations​

Parameters​

Path Parameters

providerId*
Type
string
Required
Min Length
1

Responses​

Unlink result

application/json
JSON
{
"success": true
}

Playground​

Variables
Key
Value

Samples​


List all published apps​

GET
/apps

Responses​

Apps list result

application/json
JSON
{
"success": true,
"apps": [
{
"id": "string",
"handle": "string",
"creator_id": "string",
"creator_handle": "string",
"created_at": "string",
"updated_at": "string"
}
]
}

Playground​

Samples​


Create a new app​

POST
/apps

Authorizations​

Request Body​

application/json
JSON
{
"handle": "string",
"html": "string"
}

Responses​

App create result

application/json
JSON
{
"success": true,
"app": {
"id": "string",
"handle": "string",
"creator_id": "string",
"creator_handle": "string",
"created_at": "string",
"updated_at": "string"
}
}

Playground​

Body

Samples​


Get app details with bundle URL​

GET
/apps/{appHandleOrId}

Parameters​

Path Parameters

appHandleOrId*
Type
string
Required
Min Length
1

Responses​

App details result

application/json
JSON
{
"success": true,
"app": {
"id": "string",
"handle": "string",
"creator_id": "string",
"creator_handle": "string",
"created_at": "string",
"updated_at": "string",
"bundleUrl": "string"
}
}

Playground​

Variables
Key
Value

Samples​


Publish an app with Bearer API key​

POST
/apps/publish

Authorizations​

Responses​

Publish result

application/json
JSON
{
"additionalProperties": "string"
}

Playground​

Samples​


App Bundles​


Upload a zip bundle for app hosting​

POST
/app-bundles/upload

Authorizations​

Responses​

Upload result

application/json
JSON
{
"additionalProperties": "string"
}

Playground​

Samples​


List all granted scopes for user+app​

GET
/permissions

Authorizations​

Parameters​

Query Parameters

appId*
Type
string
Required
Min Length
1

Responses​

Permissions list result

application/json
JSON
{
"success": true,
"scopes": [
"string"
]
}

Playground​

Variables
Key
Value

Samples​


Check whether a specific scope is granted​

GET
/permissions/check

Authorizations​

Parameters​

Query Parameters

appId*
Type
string
Required
Min Length
1
scope*
Type
string
Required
Min Length
1

Responses​

Permission check result

application/json
JSON
{
"success": true,
"granted": true
}

Playground​

Variables
Key
Value

Samples​


List all available platform scopes​

GET
/permissions/scopes

Responses​

Available scopes list

application/json
JSON
{
"success": true,
"scopes": [
{
"scope": "string",
"displayName": "string",
"description": "string",
"requiresOAuth": true,
"oauthProviderId": "string"
}
]
}

Playground​

Samples​


Grant scopes to user+app​

POST
/permissions/grant

Authorizations​

Request Body​

application/json
JSON
{
"appId": "string",
"scopes": [
"string"
]
}

Responses​

Grant result

application/json
JSON
{
"success": true
}

Playground​

Body

Samples​


Revoke a specific permission scope​

DELETE
/permissions/{appId}/{scope}

Authorizations​

Parameters​

Path Parameters

appId*
Type
string
Required
Min Length
1
scope*
Type
string
Required
Min Length
1

Responses​

Revoke result

application/json
JSON
{
"success": true
}

Playground​

Variables
Key
Value

Samples​


Powered by VitePress OpenAPI