EGP User Account Service
  1. Applications
EGP User Account Service
  • Overview
  • Invitations
    • Accept an organization invitation
      POST
    • Send an invitation to join an organization
      POST
  • Authentication
    • Login with email/password
      POST
    • Register a new global user
      POST
    • Exchange user token for service token
      POST
    • Get a challenge for Web3 signing
      POST
    • Verify Web3 signature and login
      POST
  • Organizations
    • Create a new organization
      POST
    • Get organization details
      GET
    • Get organization settings
      GET
    • Update organization settings
      PUT
    • List members of an organization
      GET
    • Directly add an existing user to the organization
      POST
    • Remove a member from an organization
      DELETE
    • Get a specific member's details
      GET
    • Update a member's role
      PUT
  • SSO
    • Request Challenge for Web3 SSO (EVM Only)
      POST
    • Initiate Web3 SSO Flow (IdP Start)
      GET
    • Verify SIWE Signature & Issue Token for Web3 SSO (EVM Only)
      POST
  • Applications
    • Delete an application
      DELETE
    • Get application details
      GET
    • Update application details
      PUT
    • List applications within an organization
      GET
    • Create an application within an organization
      POST
  • API Keys
    • Revoke an API key
    • List API keys for an application
    • Generate an API key for an application
  • User Self-Service
    • Get current user's profile
    • Update current user's profile
    • Update current user's password
  • Custom System Data
    • List users with custom system data
    • Get user's custom system data
    • Set/Update user's custom system data
  • Custom Data
    • Get user's custom data
    • Set/Update user's custom data
  • Inventory
    • List inventory items for an application
    • Create or update an inventory item
  1. Applications

Create an application within an organization

POST
/api/v1/organizations/{orgId}/apps
Creates a new application associated with the specified organization. Requires JWT authentication and the user must be an Admin or Owner of the organization.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://useraccounts.srblabs.io/api/v1/organizations//apps' \
--header 'Content-Type: application/json' \
--data-raw '{
    "allowed_callback_urls": [
        "https://mygame.com/callback",
        "http://localhost:3000/auth"
    ],
    "description": "The client for the best game ever.",
    "name": "My Amazing Game Client"
}'
Response Response Example
201 - Example 1
{
    "allowed_callback_urls": [
        "https://myapp.com/auth",
        "http://localhost:8080/callback"
    ],
    "created_at": "2023-10-26T10:05:00Z",
    "description": "The main client application for SAG",
    "id": "c3d4e5f6-a7b8-9012-3456-7890abcdef01",
    "name": "Super Awesome Game Client",
    "organization_id": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
}

Request

Path Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Application created successfully
Body

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🟠409409
🔴500Server Error
Modified at 2025-05-03 01:39:03
Previous
List applications within an organization
Next
Revoke an API key