Skip to main content
POST
/
agent
/
register
Register agent (legacy)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/agent/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "John Doe",
  "email": "agent@example.com",
  "password": "SecurePass1!",
  "role_id": 4,
  "contact_number": "+11234567890",
  "agent_details": {
    "agency_name": "Elite Sports Agency",
    "city": "Los Angeles",
    "linkedin_profile": "https://linkedin.com/in/johndoe",
    "fbp": "fb.1.1672531200.987654321",
    "fbc": "fb.1.1672531200.AbCdEfGhIjKlMnOpQrStUvWxYz"
  }
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
name
string
required
Example:

"John Doe"

email
string<email>
required
Example:

"agent@example.com"

password
string<password>
required
Example:

"SecurePass1!"

role_id
integer
required

Must be agent role ID

Example:

4

contact_number
string
required
Example:

"+11234567890"

agent_details
object
required

Response

Agent registered