Skip to content

Retrieve trigger token details

GET
/api/v4/projects/{id}/triggers/{trigger_id}

Retrieves details of a pipeline trigger token for a project.

id
required
One of:
string

The ID or URL-encoded path of the project

Example
18
trigger_id
required
integer

The trigger token ID

Example
10

OK

Media type application/json
object
id
integer format: int64
token
string
description
string
created_at
string format: date-time
updated_at
string format: date-time
last_used
string format: date-time
expires_at
string format: date-time
owner
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
Example
{
"id": 10,
"token": "6d056f63e50fe6f8c5f8f4aa10edb7",
"description": "test",
"created_at": "2015-12-24T15:51:21.880Z",
"updated_at": "2015-12-24T17:54:31.198Z",
"last_used": "2015-12-24T17:54:31.198Z",
"expires_at": "2015-12-24T17:54:31.198Z",
"owner": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
}
}

Bad Request

Unauthorized

Forbidden

Not found