Skip to main content
This guide walks you through the four essential steps to get up and running with CA Colombia API. By the end, you’ll have an authenticated session, a retrieved user profile, a newly created character, and an active WebSocket connection listening for live platform events.
1

Authenticate via OAuth

Before you can call any protected endpoint, you need an authenticated session. Start the OAuth flow by posting to POST /v1/oauth/:provider with your chosen provider (discord or roblox) and a redirectUrl that the API will send the player back to after they authorize.
You must complete Discord OAuth before you can link a Roblox account. Attempting the Roblox flow without an existing Discord-linked session will fail.
Request
Response
Redirect your user to targetUrl. After they authorize, the API will redirect them back to your redirectUrl with the state parameter appended as a query string. Session cookies (access_token and refresh_token) are set automatically on the callback — you do not need to handle tokens yourself.
2

Retrieve Your User Profile

Once authenticated, retrieve the current user’s profile with GET /v1/users/{userId}. You must pass the user’s own ID — you cannot view another user’s profile unless you have elevated permissions.Append ?providers=true to include linked OAuth provider details, or ?signature=true to include character signature data.Request
Response
Keep your userId handy — you’ll need it for all subsequent requests scoped to your account, including character creation.
3

Create a Character

Create your first roleplay character with POST /v1/users/{userId}/characters. The character starts in draft status and an ID card is generated automatically. You can submit it for staff review once it’s ready.All fields in the request body are required. gender must be either "Masculino" or "Femenino", and bloodType must be one of the eight supported values.Request
Response
Body schema reference
4

Connect to WebSocket

Connect to the CA Colombia WebSocket server to receive live platform events without polling. After establishing the connection, send a subscribe message to start receiving events for the topics you care about.Connect
Incoming event example
Handling messages
Implement reconnection logic with exponential backoff to handle transient network interruptions gracefully.

What’s Next?

Now that you have a working session and your first character created, explore the full API surface:
  • Authentication — Understand cookie sessions, token refresh, and error codes in depth.
  • Character Endpoints — Submit characters for review, update visuals, and manage ID status.
  • Economy & Banking — Interact with wallets and bank accounts programmatically.
  • Staff Endpoints — Approve or reject pending character submissions (requires elevated permissions).