RefreshToken
POST
Request Body
requiredapplication/json{
"$ref": "#/components/schemas/auth.v1.RefreshTokenRequest",
"$ref-value": {
"type": "object",
"properties": {
"token_type": {
"type": "string",
"title": "token_type"
},
"refresh_token": {
"type": "string",
"title": "refresh_token"
},
"country_code": {
"type": "string",
"title": "country_code"
},
"origin": {
"type": "string",
"title": "origin"
},
"code_verifier": {
"type": "string",
"title": "code_verifier"
},
"redirect_uri": {
"type": "string",
"title": "redirect_uri"
},
"org_id": {
"type": "string",
"title": "org_id"
}
},
"title": "RefreshTokenRequest",
"additionalProperties": false
}
}Response Body
200application/json
Success
type: unknown
{
"$ref": "#/components/schemas/auth.v1.TokenResponse",
"$ref-value": {
"type": "object",
"properties": {
"access_token": {
"type": "string",
"title": "access_token"
},
"refresh_token": {
"type": "string",
"title": "refresh_token"
},
"expires_in": {
"type": "string",
"title": "expires_in",
"format": "int64"
},
"token_type": {
"type": "string",
"title": "token_type"
},
"requires_action": {
"type": "string",
"title": "requires_action"
},
"org_id": {
"type": "string",
"title": "org_id"
},
"role": {
"type": "string",
"title": "role"
},
"last_active_org_id": {
"type": "string",
"title": "last_active_org_id"
},
"domain_join_suggestions": {
"type": "array",
"items": {
"$ref": "#/components/schemas/auth.v1.Organization",
"$ref-value": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "id"
},
"name": {
"type": "string",
"title": "name"
},
"slug": {
"type": "string",
"title": "slug"
},
"image_id": {
"type": "string",
"title": "image_id"
},
"personal": {
"type": "boolean",
"title": "personal"
},
"internal": {
"type": "boolean",
"title": "internal"
},
"created_at": {
"title": "created_at",
"$ref": "#/components/schemas/google.protobuf.Timestamp",
"$ref-value": {
"type": "string",
"examples": [
"2023-01-15T01:30:15.01Z",
"2024-12-25T12:00:00Z"
],
"format": "date-time",
"description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
}
},
"state": {
"title": "state",
"$ref": "#/components/schemas/auth.v1.OrganizationState",
"$ref-value": {
"type": "string",
"title": "OrganizationState",
"enum": [
"ORGANIZATION_STATE_UNSPECIFIED",
"ORGANIZATION_STATE_ACTIVE",
"ORGANIZATION_STATE_DELETED",
"ORGANIZATION_STATE_PURGING"
]
}
},
"delete_time": {
"title": "delete_time",
"$ref": "#/components/schemas/google.protobuf.Timestamp",
"$ref-value": {
"type": "string",
"examples": [
"2023-01-15T01:30:15.01Z",
"2024-12-25T12:00:00Z"
],
"format": "date-time",
"description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
}
},
"purge_time": {
"title": "purge_time",
"$ref": "#/components/schemas/google.protobuf.Timestamp",
"$ref-value": {
"type": "string",
"examples": [
"2023-01-15T01:30:15.01Z",
"2024-12-25T12:00:00Z"
],
"format": "date-time",
"description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
}
}
},
"title": "Organization",
"additionalProperties": false
}
},
"title": "domain_join_suggestions"
}
},
"title": "TokenResponse",
"additionalProperties": false
}
}