Establishing a session in the API requires specific syntax depending on whether you are using REST or SOAP. Use this table to find the syntax for your session command.

NOTE: DynID and Managed DNS credentials are independent of one another. A DynID will never be the same as a Managed DNS user_name.

REST Syntax

Click to view all REST Resources

Session/ POST – Starts an API Session

HTTP Action – POST

URI – https://api.dynect.net/REST/Session/

Arguments:

string customer_nameRequired. Your customer name.

string user_nameRequired. Your user name.

string passwordRequired. Your password.

Response:

NOTE: The value of the token field must be passed as the HTTP header Auth-Token for all subsequent requests.

string token — The session token (to be passed in via the Auth-Token HTTP header)

string version — The API protocol version that handled this request

Dyn Logo

SOAP Syntax

Click to view all SOAP Commands

SessionLogin – Starts a new API Session.

Arguments:

string customer_nameRequired. Your customer name.

string user_nameRequired. Your user name.

string passwordRequired. Your password.

Response:

NOTE: The token field will be used for all subsequent requests.

  • string data
    • string token — The session token.
    • string version — The API protocol version that handled this request.
Example Request — Click for More Info