SoulFire LogoSoulFire

Refresh Minecraft account

Refreshes the authentication tokens for an existing Minecraft account. Used to renew expired access tokens using stored refresh tokens. For Microsoft accounts, this refreshes the Minecraft token, profile, and player certificates. For offline accounts, returns the account unchanged (offline accounts never expire).

POST
/v1/instances/p0/mc-auth:refresh

Refreshes the authentication tokens for an existing Minecraft account. Used to renew expired access tokens using stored refresh tokens.

For Microsoft accounts, this refreshes the Minecraft token, profile, and player certificates. For offline accounts, returns the account unchanged (offline accounts never expire).

Authorization

AuthorizationBearer <token>

Preferred API authentication. Use a JWT with the api audience.

In: header

Path Parameters

instance_id*string

The UUID of the SoulFire instance context for the refresh operation. Must be a valid UUID string. The instance must exist and the caller must have AUTHENTICATE_MC_ACCOUNT permission for this instance.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://127.0.0.1:38765/v1/instances/p0/mc-auth:refresh" \  -H "Content-Type: application/json" \  -d '{}'
{
  "account": {
    "type": "MICROSOFT_JAVA_CREDENTIALS",
    "profile_id": "string",
    "last_known_name": "string",
    "online_chain_java_data": {
      "auth_chain": {
        "fields": {
          "property1": {
            "null_value": "NULL_VALUE",
            "number_value": 0.1,
            "string_value": "string",
            "bool_value": true,
            "struct_value": {
              "fields": {}
            },
            "list_value": {
              "values": [
                {
                  "null_value": "NULL_VALUE",
                  "number_value": 0.1,
                  "string_value": "string",
                  "bool_value": true,
                  "struct_value": {
                    "fields": {}
                  },
                  "list_value": {
                    "values": []
                  }
                }
              ]
            }
          },
          "property2": {
            "null_value": "NULL_VALUE",
            "number_value": 0.1,
            "string_value": "string",
            "bool_value": true,
            "struct_value": {
              "fields": {}
            },
            "list_value": {
              "values": [
                {
                  "null_value": "NULL_VALUE",
                  "number_value": 0.1,
                  "string_value": "string",
                  "bool_value": true,
                  "struct_value": {
                    "fields": {}
                  },
                  "list_value": {
                    "values": []
                  }
                }
              ]
            }
          }
        }
      }
    },
    "offline_java_data": {},
    "bedrock_data": {
      "auth_chain": {
        "fields": {
          "property1": {
            "null_value": "NULL_VALUE",
            "number_value": 0.1,
            "string_value": "string",
            "bool_value": true,
            "struct_value": {
              "fields": {}
            },
            "list_value": {
              "values": [
                {
                  "null_value": "NULL_VALUE",
                  "number_value": 0.1,
                  "string_value": "string",
                  "bool_value": true,
                  "struct_value": {
                    "fields": {}
                  },
                  "list_value": {
                    "values": []
                  }
                }
              ]
            }
          },
          "property2": {
            "null_value": "NULL_VALUE",
            "number_value": 0.1,
            "string_value": "string",
            "bool_value": true,
            "struct_value": {
              "fields": {}
            },
            "list_value": {
              "values": [
                {
                  "null_value": "NULL_VALUE",
                  "number_value": 0.1,
                  "string_value": "string",
                  "bool_value": true,
                  "struct_value": {
                    "fields": {}
                  },
                  "list_value": {
                    "values": []
                  }
                }
              ]
            }
          }
        }
      }
    },
    "online_simple_java_data": {
      "access_token": "string",
      "expire_time_ms": 0
    },
    "config": [
      {
        "namespace": "string",
        "entries": [
          {
            "key": "string",
            "value": {
              "null_value": "NULL_VALUE",
              "number_value": 0.1,
              "string_value": "string",
              "bool_value": true,
              "struct_value": {
                "fields": {
                  "property1": {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {}
                    },
                    "list_value": {
                      "values": [
                        {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      ]
                    }
                  },
                  "property2": {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {}
                    },
                    "list_value": {
                      "values": [
                        {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      ]
                    }
                  }
                }
              },
              "list_value": {
                "values": [
                  {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {
                        "property1": {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        },
                        "property2": {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      }
                    },
                    "list_value": {
                      "values": []
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    ],
    "persistent_metadata": [
      {
        "namespace": "string",
        "entries": [
          {
            "key": "string",
            "value": {
              "null_value": "NULL_VALUE",
              "number_value": 0.1,
              "string_value": "string",
              "bool_value": true,
              "struct_value": {
                "fields": {
                  "property1": {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {}
                    },
                    "list_value": {
                      "values": [
                        {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      ]
                    }
                  },
                  "property2": {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {}
                    },
                    "list_value": {
                      "values": [
                        {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      ]
                    }
                  }
                }
              },
              "list_value": {
                "values": [
                  {
                    "null_value": "NULL_VALUE",
                    "number_value": 0.1,
                    "string_value": "string",
                    "bool_value": true,
                    "struct_value": {
                      "fields": {
                        "property1": {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        },
                        "property2": {
                          "null_value": "NULL_VALUE",
                          "number_value": 0.1,
                          "string_value": "string",
                          "bool_value": true,
                          "struct_value": {
                            "fields": {}
                          },
                          "list_value": {
                            "values": []
                          }
                        }
                      }
                    },
                    "list_value": {
                      "values": []
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  }
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?