POST api/auth/register
Creates a new user account without requiring an Authorization header.
Request Information
URI Parameters
None.
Body Parameters
User registration request.
RegisterRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Username |
Username (email address). |
string |
None. |
| Password |
Password. |
string |
None. |
| FullName |
Full name. |
string |
None. |
| AccountType |
Account type. |
AccountType |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Password": "sample string 2",
"FullName": "sample string 3",
"AccountType": "PayPerUse"
}
application/xml, text/xml
Sample:
<RegisterRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models"> <AccountType>PayPerUse</AccountType> <FullName>sample string 3</FullName> <Password>sample string 2</Password> <Username>sample string 1</Username> </RegisterRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Created user details and authentication token.
RegisterResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Username |
Username. |
string |
None. |
| FullName |
Full name. |
string |
None. |
| AccountType |
Account type. |
None. |
Response Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"FullName": "sample string 2",
"AccountType": "None",
"WsKey": "sample string 3",
"Token": {
"$id": "2",
"Value": "sample string 1",
"Expiration": "2026-11-12T10:32:14.0454086+01:00"
},
"Url": "sample string 4"
}
application/xml, text/xml
Sample:
<RegisterResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models">
<AccountType>None</AccountType>
<FullName>sample string 2</FullName>
<Token xmlns:d2p1="http://schemas.datacontract.org/2004/07/PuntoNeutro.Core.WebApi">
<d2p1:Expiration>2026-11-12T10:32:14.0454086+01:00</d2p1:Expiration>
<d2p1:Value>sample string 1</d2p1:Value>
</Token>
<Url>sample string 4</Url>
<Username>sample string 1</Username>
<WsKey>sample string 3</WsKey>
</RegisterResponse>