ApiToken_Create

Generate an API Token.

Usage

Generate a unique API token to be used for API authentication. The API token will replace your account password in your API calls.

Availability

All resellers have access to this command.

Constraints

You will need to supply your account password as the pw parameter to execute this command.

Input Parameters

https://resellertest.enom.com/interface.asp?command=ApiToken_Create&uid={YourAccountID}&pw={YourAccountPassword}&name={UniqueName}&responsetype=xml
Input ParameterTypeDescription
commandstringApiToken_Create
uidstringYour account username
pwstringYour account password
namestringA unique name used to identify the API token
responsetypestringXML

Returned Parameters and Values

The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.

Check the return parameter ErrCount. If greater than 0 the transaction failed. The parameter Err(ErrCount) can be presented to the client. Otherwise, the process returns parameters as defined above.

Output ParameterTypeDescription
APITokenstringThe API Token
APITokenNamestringThe API Token Name
APITokenIDintThe API Token ID