---
updatedAt: 2026-06-04T19:58:43.000Z
agentTools:
  projectIndex: https://docs.wristband.dev/llms.txt
---

# Resolve Tenant Identity Provider Redirect URLs

Resolves the redirect URLs for the specified tenant and identity provider types.  The domain name used in the redirect URLs will be the active vanity domain for the specified tenant.

### Required Permissions

Below is the list of required permissions needed to interact with this API.  For each permission, the allowed permission boundaries are also specified.

| Permission                 | Boundary              | Description                                                                                                                                                                    |
| -------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **identity-provider:read** | Application           | The subject can perform this request if the tenant specified in the URL path is associated with the subject's application.                                                     |
|                            | Tenant                | The subject can perform this request if they are associated with the tenant specified in the URL path.                                                                         |
|                            | Tenant Inclusion List | The subject can perform this request if the tenant specified in the URL path is included in the tenant inclusion list.                                                         |
|                            | Tenant Exclusion List | The subject can perform this request if the tenant specified in the URL path belongs to the subject's associated application and is not included in the tenant exclusion list. |

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Resource Management APIs",
    "version": "1.0.0",
    "description": "Resource Management APIs",
    "license": {
      "name": "Private",
      "url": "https://wristband.dev/terms/"
    },
    "termsOfService": "https://wristband.dev/terms/",
    "contact": {
      "name": "Wristband Support",
      "email": "support@wristband.dev",
      "url": "https://wristband.dev/contact/"
    }
  },
  "servers": [
    {
      "url": "https://{application_vanity_domain}",
      "description": "Wristband application scoped URL.",
      "variables": {
        "application_vanity_domain": {
          "default": "yourapp-yourorg.us.wristband.dev",
          "description": "Wristband vanity domain scoped to a specific application."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Identity Providers",
      "description": "Identity Providers",
      "x-displayName": "Identity Providers"
    }
  ],
  "paths": {
    "/api/v1/tenants/{tenantId}/identity-providers/resolve-redirect-urls": {
      "parameters": [
        {
          "$ref": "#/components/parameters/Resource_Management_APIs_TenantId"
        }
      ],
      "post": {
        "summary": "Resolve Tenant Identity Provider Redirect URLs",
        "operationId": "resolveTenantIdentityProviderRedirectsUrlsV1",
        "tags": [
          "Identity Providers"
        ],
        "requestBody": {
          "description": "JSON representing the identity provider redirect URL request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Resource_Management_APIs_ResolveIdentityProviderRedirectUrlsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Resource_Management_APIs_ResolveIdentityProviderRedirectUrlsResponse"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "items": [
                        {
                          "identityProviderType": "GITHUB",
                          "redirectUrls": [
                            {
                              "protocolType": "OAUTH2",
                              "redirectUrl": "http://tnt.example.com/redirect",
                              "redirectDomainName": "tnt.example.com"
                            }
                          ]
                        },
                        {
                          "identityProviderType": "GOOGLE",
                          "redirectUrls": [
                            {
                              "protocolType": "OAUTH2",
                              "redirectUrl": "http://tnt.example.com/redirect",
                              "redirectDomainName": "tnt.example.com"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Resource_Management_APIs_400-with-message-body"
          },
          "401": {
            "$ref": "#/components/responses/Resource_Management_APIs_401"
          },
          "403": {
            "$ref": "#/components/responses/Resource_Management_APIs_403"
          },
          "404": {
            "$ref": "#/components/responses/Resource_Management_APIs_404-application-not-found"
          },
          "405": {
            "$ref": "#/components/responses/Resource_Management_APIs_405"
          },
          "406": {
            "$ref": "#/components/responses/Resource_Management_APIs_406"
          },
          "415": {
            "$ref": "#/components/responses/Resource_Management_APIs_415"
          },
          "500": {
            "$ref": "#/components/responses/Resource_Management_APIs_500"
          },
          "503": {
            "$ref": "#/components/responses/Resource_Management_APIs_503"
          }
        },
        "security": [
          {
            "Resource_Management_APIs_BearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Resource_Management_APIs_BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "parameters": {
      "Resource_Management_APIs_TenantId": {
        "name": "tenantId",
        "description": "The ID of the tenant that the resource or action is scoped to.",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 26,
          "example": "fjffnbwairfhzkakzjtemooh7e"
        }
      }
    },
    "schemas": {
      "Resource_Management_APIs_api-error": {
        "title": "ApiError",
        "type": "object",
        "description": "API error object",
        "x-examples": {
          "Example 1": {
            "code": "invalid_request",
            "message": "The request was invalid",
            "ticket": "11t7n71hi5e6t"
          }
        },
        "properties": {
          "type": {
            "type": "string",
            "example": "base_error",
            "minLength": 1,
            "description": "The type of the API error.",
            "readOnly": true
          },
          "code": {
            "type": "string",
            "example": "invalid_request",
            "minLength": 1,
            "description": "A code identifying the error that occurred.",
            "readOnly": true
          },
          "message": {
            "type": "string",
            "example": "The request was invalid",
            "description": "A free text message describing the error.  This error message is only meant to help developers understand the cause of the error.  It should not be used for programmatic purposes.",
            "readOnly": true
          },
          "ticket": {
            "type": "string",
            "example": "11t7n71hi5e6t",
            "description": "Ticket that can help correlate the error to the backend",
            "readOnly": true
          },
          "details": {
            "type": "object",
            "description": "A map of details about the error. The keys are defined by the API.",
            "additionalProperties": {},
            "example": {
              "attemptsRemaining": 4
            }
          }
        },
        "required": [
          "type",
          "code"
        ]
      },
      "Resource_Management_APIs_constraint-violations-api-error": {
        "title": "ConstraintViolationsApiError",
        "description": "An API error that occurred due to a constraint violation",
        "allOf": [
          {
            "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
          },
          {
            "type": "object",
            "readOnly": true,
            "required": [
              "violations"
            ],
            "properties": {
              "violations": {
                "type": "object",
                "readOnly": true,
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "A code identifying the constraint violation.",
                    "minLength": 1,
                    "example": "too_long"
                  },
                  "constraintAttributes": {
                    "type": "object",
                    "description": "A map of constraint attribute values.",
                    "additionalProperties": {
                      "type": "string"
                    },
                    "example": {
                      "maxLength": "10"
                    }
                  }
                }
              }
            }
          }
        ],
        "x-examples": {
          "Example 1": {
            "type": "constraint_violations_error",
            "code": "message_body_constraint_violations",
            "message": "The request contained invalid fields",
            "ticket": "11t7n71hi5e6t",
            "violations": {
              "field1": {
                "code": "too_long",
                "constraintAttributes": {
                  "maxLength": "10"
                }
              },
              "field2": {
                "code": "not_null"
              }
            }
          }
        }
      },
      "Resource_Management_APIs_ResolveIdentityProviderRedirectUrlsRequest": {
        "type": "object",
        "title": "ResolveIdentityProviderRedirectUrlsRequest",
        "description": "Request to resolve the redirect URLs for a specified list of identity provider types.",
        "x-tags": [
          "Models"
        ],
        "properties": {
          "identityProviderTypes": {
            "type": "array",
            "minItems": 1,
            "uniqueItems": true,
            "description": "Array of IdP types to resolve redirect URLs for",
            "items": {
              "type": "string",
              "description": "The type of the IdP",
              "minLength": 1,
              "maxLength": 25,
              "enum": [
                "APPLE",
                "BITBUCKET",
                "GITHUB",
                "GITLAB",
                "GOOGLE",
                "MICROSOFT",
                "MICROSOFT_ENTRA_ID",
                "OKTA"
              ],
              "example": "GOOGLE"
            }
          },
          "redirectDomainName": {
            "description": "If provided, this value will be used as the domain name for the redirect URLs.",
            "type": "string",
            "pattern": "hostname",
            "example": "redirect.com"
          }
        },
        "example": {
          "identityProviderTypes": [
            "GITHUB",
            "GOOGLE"
          ]
        }
      },
      "Resource_Management_APIs_ResolveIdentityProviderRedirectUrlsResponse": {
        "type": "object",
        "title": "ResolveIdentityProviderRedirectUrlsResponse",
        "description": "Response to a request to resolve the redirect URLs for a specified list of identity provider types.",
        "x-tags": [
          "Models"
        ],
        "properties": {
          "items": {
            "type": "array",
            "description": "Array of the resolved identity provider redirect URLs.",
            "readOnly": true,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Resource_Management_APIs_ResolvedIdentityProviderRedirectUrls"
            }
          }
        },
        "example": {
          "items": [
            {
              "identityProviderType": "GITHUB",
              "redirectUrls": [
                {
                  "protocolType": "OAUTH2",
                  "redirectUrl": "http://example.com/redirect",
                  "redirectDomainName": "example.com"
                }
              ]
            },
            {
              "identityProviderType": "GOOGLE",
              "redirectUrls": [
                {
                  "protocolType": "OAUTH2",
                  "redirectUrl": "http://example.com/redirect",
                  "redirectDomainName": "example.com"
                }
              ]
            }
          ]
        }
      },
      "Resource_Management_APIs_ResolvedIdentityProviderRedirectUrls": {
        "type": "object",
        "title": "ResolvedIdentityProviderRedirectUrls",
        "description": "Resolved identity provider redirect URLs.",
        "x-tags": [
          "Models"
        ],
        "properties": {
          "identityProviderType": {
            "type": "string",
            "enum": [
              "APPLE",
              "BITBUCKET",
              "GITHUB",
              "GITLAB",
              "GOOGLE",
              "MICROSOFT",
              "MICROSOFT_ENTRA_ID",
              "OKTA"
            ],
            "example": "GOOGLE",
            "minLength": 1,
            "maxLength": 25,
            "description": "The type of the IdP"
          },
          "redirectUrls": {
            "type": "array",
            "description": "Array of the resolved identity provider redirect URLs.",
            "readOnly": true,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/Resource_Management_APIs_ProtocolRedirectUrl"
            }
          }
        },
        "example": {
          "identityProviderType": "GOOGLE",
          "redirectUrls": [
            {
              "protocolType": "OAUTH2",
              "redirectUrl": "http://redirect.com/endpoint",
              "redirectDomainName": "redirect.com"
            }
          ]
        }
      },
      "Resource_Management_APIs_ProtocolRedirectUrl": {
        "type": "object",
        "title": "ProtocolRedirectUrl",
        "description": "A resolved protocol redirect URL.",
        "x-tags": [
          "Models"
        ],
        "properties": {
          "protocolType": {
            "type": "string",
            "enum": [
              "OAUTH2",
              "SIWA"
            ],
            "example": "OAUTH2",
            "minLength": 1,
            "maxLength": 60,
            "description": "The type of the IdP protocol"
          },
          "redirectUrl": {
            "type": "string",
            "format": "uri",
            "description": "The resolved identity provider redirect URL.",
            "minLength": 1,
            "maxLength": 2000,
            "example": "http://redirect.com/endpoint"
          },
          "redirectDomainName": {
            "description": "The domain name used to generate the redirect URL.",
            "type": "string",
            "pattern": "hostname",
            "example": "redirect.com"
          }
        },
        "example": {
          "protocolType": "OAUTH2",
          "redirectUrl": "http://redirect.com/redirect",
          "redirectDomainName": "redirect.com"
        }
      }
    },
    "responses": {
      "Resource_Management_APIs_401": {
        "description": "Unauthorized",
        "headers": {
          "WWW-Authenticate": {
            "description": "Includes details on the failed authentication condition. This header is set in accordance with the [OAuth2 specification](https://datatracker.ietf.org/doc/html/rfc6750#section-3).",
            "schema": {
              "type": "string",
              "example": "Bearer error=\"invalid_token\", error_description=\"The provided access token was invalid\""
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - unauthenticated": {
                "value": {
                  "type": "base_error",
                  "code": "invalid_access_token",
                  "message": "The provided access token was invalid",
                  "ticket": "1u0d0edhwbjsd"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_403": {
        "description": "Forbidden",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - unauthorized": {
                "value": {
                  "type": "base_error",
                  "code": "unauthorized",
                  "message": "The request failed authorization",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_405": {
        "description": "Method Not Allowed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - method_not_supported": {
                "value": {
                  "type": "base_error",
                  "code": "method_not_supported",
                  "message": "The specified HTTP method is not supported",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_406": {
        "description": "Not Acceptable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - not_acceptable": {
                "value": {
                  "type": "base_error",
                  "code": "not_acceptable",
                  "message": "The Accept header was invalid",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_415": {
        "description": "Unsupported Media Type",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - unsupported_media_type": {
                "value": {
                  "type": "base_error",
                  "code": "unsupported_media_type",
                  "message": "The Content-Type header was invalid",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_500": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - internal_server_failure ": {
                "value": {
                  "type": "base_error",
                  "code": "internal_server_failure",
                  "message": "An unexpected error occurred while processing the request",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_503": {
        "description": "Service Unavailable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - service_unavailable": {
                "value": {
                  "type": "base_error",
                  "code": "service_unavailable",
                  "message": "The service is currently unavailable",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_404-application-not-found": {
        "description": "Not Found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
            },
            "examples": {
              "code - application_not_found": {
                "value": {
                  "type": "base_error",
                  "code": "application_not_found",
                  "message": "Application could not be found",
                  "ticket": "11t7n71hi5e6t"
                }
              }
            }
          }
        }
      },
      "Resource_Management_APIs_400-with-message-body": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Resource_Management_APIs_api-error"
                },
                {
                  "$ref": "#/components/schemas/Resource_Management_APIs_constraint-violations-api-error"
                }
              ]
            },
            "examples": {
              "code - invalid_request": {
                "value": {
                  "type": "base_error",
                  "code": "invalid_request",
                  "message": "The request was invalid",
                  "ticket": "11t7n71hi5e6t"
                }
              },
              "code - request_constraint_violations": {
                "value": {
                  "type": "constraint_violations_error",
                  "code": "message_body_constraint_violations",
                  "message": "The message body contained invalid fields",
                  "ticket": "11t7n71hi5e6t",
                  "violations": {
                    "field1": {
                      "code": "too_long",
                      "constraintAttributes": {
                        "maxLength": 10
                      }
                    },
                    "field2": {
                      "code": "not_null"
                    }
                  }
                }
              },
              "code - message_body_constraint_violations": {
                "value": {
                  "type": "constraint_violations_error",
                  "code": "message_body_constraint_violations",
                  "message": "The message body contained invalid fields",
                  "ticket": "11t7n71hi5e6t",
                  "violations": {
                    "field1": {
                      "code": "too_long",
                      "constraintAttributes": {
                        "maxLength": 10
                      }
                    },
                    "field2": {
                      "code": "not_null"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Resource Management APIs",
      "tags": [
        "Applications",
        "Auth Factors",
        "Auth Sessions",
        "Auth Session Policies",
        "Bot Detection Policies",
        "Custom Claims",
        "Custom Domains",
        "Email Brandings",
        "Email Domains",
        "Email Policies",
        "External IdP Profiles",
        "External IdP Tokens",
        "Identity Providers",
        "IdP Attribute Mappings",
        "IdP Role Mappings",
        "MFA Policies",
        "OAuth2 Clients",
        "Page Brandings",
        "Password Policies",
        "Permissions",
        "Permission Boundaries",
        "Permission Groups",
        "Refresh Tokens",
        "Remembered Tenants",
        "Roles",
        "Role Assignment Policies",
        "Signing Keys",
        "Tenants",
        "Users",
        "User Schemas",
        "Vanity Domains",
        "Webhook Policies",
        "Workflow Policies"
      ]
    }
  ]
}
```