Skip to content

Commit 108136f

Browse files
authored
Merge pull request #3007 from port-labs/PORT-16690-bug-at-one-time-a-single-jwt-api-token-is-shared-between-different-components
add token reuse note
2 parents 56911f9 + 459aed9 commit 108136f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/api-reference/port-api.info.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ To use the API, you need to obtain an API token from your Port application:
4747
<img src="/img/openapi/getBearerToken.png" width="70%" border="1px" />
4848
An API token is valid for **3 hours**, after which you will need to generate a new one.
4949

50+
:::info Active token reuse
51+
For each set of API credentials, there can only be one active token at a time.
52+
When a token is generated (for example, by an integration), any subsequent requests to generate a token with the same credentials will return the same active token, as long as it has not expired.
53+
54+
To avoid errors that might occur due to token expiration, make sure to include retry logic in your code.
55+
:::
56+
5057
## Size limit
5158

5259
The body of all requests is limited to 1 MiB.

0 commit comments

Comments
 (0)