Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7597701

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:13:17+00:00 2026-05-30T22:13:17+00:00

I am trying to use name.com API in C#. The API has different actions

  • 0

I am trying to use name.com API in C#. The API has different actions including /Login, /account/get, /create/domain and more. You can find the documentation here

The /Login method is POST and the body is a JSON, and done it with HttpWebRequest and it works successfully. It returns something like:

    {
        "result": {
                    "code":100,
                    "message":"Command Successful"
                  },
        "session_token":"a59a09be6562e977a166fdd2b345a235c8b6c724"
    }

But after login, I need to use the other services (run the other API actions).

Here I am sending another HttpWebRequest as:

    string base = "https://api.dev.name.com/api/"
    HttpWebRequest request;
    request = WebRequest.Create(base + "account/get") as HttpWebRequest;  
    ....
    ....

Instead of returning the account information, it returns an error which says:

    {
      "result": 
      {
        "code":251,
        "message":"Authentication Error - No Api Session Or Username Token Supplied"
      }
    }

I think that I need a way to send the request along with the login information. The err message here is “Authentication Error – No Api Session Or Username Token Supplied”

NOTE: There is PHP sample code and classes for this API. Here is the link of the API Documentation

  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:13:18+00:00Added an answer on May 30, 2026 at 10:13 pm

    See page 18 of the documentation. You need to pass the returned session token as a request header:

    Api-Session-Token: <session_token>
    

    So, once you get the response and get the token, you would just add the following line:

    httpWebRequest.Headers.Add("Api-Session-Token", <session_token>);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
Ok, I'm trying to use jQuery $.post with the PasteBin API to create a
I'm trying to use the stackoverflow API and I want to get answers of
I'm trying to use the Facebook Graph API to get all the events I'm
I'm trying to use the Google Maps V3 API to create markers on a
We are trying to use a basic @OneToMany relationship: @Entity @Table(name = PARENT_MESSAGE) public
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I am trying to use Google's OAuth2 API. In their generic documentation, they mention
I'm using Delphi 2009 and the MS Access Interop COM API. I'm trying to
I am trying to find a way to use the Postful API and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.