/auth/

Perform authentication and receive JWT token to use at /api/* endpoints

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Perform authentication by submitting a signed challenge back to the app

$.post(
  'https://yoursite.com/auth/', 
  { 
    xdr: 'AAAA....sdfdkfjk', 
    public_key: 'GACCRQ4BI3DTI6U37OLBOQ6FBY3CSF5C672LWIIOCBRQ3GYLCK2IGZ6U' 
  },
  function(data) {
    // returns a JWT token issued by the app backend which can then
    // be used to authenticate for /api/* endpoints
    console.log(data);
});
Query Params
string
required

Original challenge transaction signed by the user's secret seed

string
required

Public key of authenticating account

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
LoadingLoading…
Response
Choose an example:
text/plain
application/json